Skip to content

getSideScoreboard().getLines() bug #26

Description

@SuikaWars

not return all strings

package test;

import eu.the5zig.mod.The5zigAPI;
import eu.the5zig.mod.ModAPI;
import eu.the5zig.mod.event.ChatSendEvent;
import eu.the5zig.mod.event.EventHandler;
import eu.the5zig.mod.plugin.Plugin;

@plugin(name = "test", version = "1.0.0")
public class Main{
@eventhandler
public void ChatSend(ChatSendEvent event)
{
if(event.getMessage().startsWith("/getscoreboard ") || event.getMessage().equals("/getscoreboard"))
{
event.setCancelled(true);
int number = 0;
for(String key : The5zigAPI.getAPI().getSideScoreboard().getLines().keySet()){
number++;
The5zigAPI.getAPI().messagePlayer("[Scoreboard " + number + "]" + key);
}
}
}
}

2017-11-11_22 16 07
Game: TNT Wizards
->Game: TNT Wiza

http://www.hypixel.net
->http://www.hypixel.ne

Server: mini114B
->Server: mini11

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions