well something is going on here: Me/ProKits/Pro1v1/SB
D4rkz what is the problem :), btw events are not cancled unless you set them so. Hint: event.setCancelled(false);
warriorjay25 /* example */ @EventHandler public void command (PlayerCommandPreprocessEvent event) {...
warriorjay25 Listen for PlayerCommandPreprocessEvent, check if the .getMessage().equals("/plugins") and then cancel event if it does ;) - Jace_oio
You could allways use HashMaps ;) hint: Map<String, String> currentRequest = new HashMap<String, String>(); EDIT by Moderator: merged posts,...
Wrong section I would say
((CraftPlayer) player).getHandle().playerConnection.sendPacket(new PacketPlayOutChat(ChatSerializer.a(yourJsonMessage))); I think you should be...
/* example */ String line = "foo"; if(line.equals("foo") { System.out.println("line equals foo !!!"); } as Totom3 said you cannot compare a...
gabe4356 Actully if the parameter r was a int your would not need to cast (int) to this: int x = (int) (X -r);int y = (int) (Y -r);int z...
gabe4356 np, remeber to get the one with parameter explanation for extra coolness :DDDD
gabe4356 here you go :) /** @param loc is the location of the the location player just moved too @param r the radius you want to check for the...
true
Necrodoom you are completely right, but it would still Work for a iron fence though :) cuz its missing "fill"
gabe4356 no problem, just remember to scroll through the code a few extra times then you actual think is needed. If you did so you would have...
Gnat008 it dosnt need to be static :), just make it public void ....@
@EventHandler public static void onPlayerMove(PlayerMoveEvent event){ if(event.getTo().getBlock().getType() == Material.IRON_FENCE){...
and you miss @EventHandler :) Okay first off all add a @EventHandler above your event method. Second you would add 1 y to e.getTo() location so...
@EventHandler public void onPlayerMove(PlayerMoveEvent event){ if(event.isCancelled()){ return; }...
tommycake50 I ended up using your solution, Works perfect. Thanks for all the suport and help Rocoty, tommycake50, lDucks and callum2904
Hi, How would I be able to get the ChatColor of a string in a switch statement Example: String string = ChatColor.GREEN + "hi";...
Separate names with a comma.