there's no method like getUUID() What. player.getUniqueID()
String[] words = event.getMessage().split(" "); for(int i = 0; i < words.length; i++){ if(words[i].equalsIgnoreCase("tp") && i !=...
Uh, no? == and equals are totally different, do you even understand how java works? on topic, try this. @EventHandler public void...
I's because you're using.equals to compare type, you need == if(event.getGetClickedBlock().getType() == Material.STONE){
Kassestral didn't typecheck before casting in two of his posts Necrodoom I'd rather see a correct copypaste than someone with a horrible mess of...
First of all, sender doesn't need to be a player to send a message, second of all, half of you guys are suggesting just casting sender to player,...
use localhost.
https://forums.bukkit.org/threads/tutorial-create-a-inventory-menu.173571/
Listen for a PlayerInteractEvent. something like this (note this is psuedocode and may have errors :P ) @EventHandler public void...
You'd want to use maven to shade them in.
Retherz_, that method is a bad idea, use getServer().getPlayer(), that will do what you're looking for.
it would also need to be if(!player.hasPlayedBefore()){ otherwise it would give them the gift every time they join
if (online.getGameMode(GameMode.ADVENTURE).length == 1) { wat. for(Player online : getServer().getOnlinePlayers()){ List<Player> survivors =...
Lets say you have that stored in a config file, in a variable named message String message = this.getConfig().getString("message"); message =...
Just a tip for further optimization, don't create a new filewriter every time you want to log, lets say you use this for a logging plugin or...
Because the event is fired before the iteminhand is set to the sword, i would schedule a task a few seconds later
BufferedWriters or any sort of filewriters have an option to either append, or overwrite the file, for a bufferedwriter, it'd look something like...
I actually made something similar to this a while back, here's the source if any of the devs want to modify it for this guys needs. Basically,...
in your Game class do this @Override public void onEnable(){ getServer().getPluginManager().registerEvents(this, this); }
public static HashMap<File, BufferedWriter> writers = new HashMap<File, BufferedWriter>(); public void log(File log, String message) { try...
Separate names with a comma.