-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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);
}
}
}
}

Game: TNT Wizards
->Game: TNT Wiza
http://www.hypixel.net
->http://www.hypixel.ne
Server: mini114B
->Server: mini11