@ChucknorisSR Player target = Bukkit.getPlayer(args[0]); if(target == null) { //Player is offline } else { //Player is online, do whatever }
Wrong section. Meant for resources, such as Tutorials/Libraries.
@Atoxz58 http://wiki.bukkit.org/Scheduler_Programming
@BagduFagdu You should probably check if the config path is null, since you are looping through a hashmap and if there are 3 values in the map, it...
@driver-e Using packets, not too sure which packet though. Possibly PacketPlayOutBed..
Just do: if(!event.getInventory().getTitle().equalsIgnoreCase("Your title")) { //Player has clicked item which is not in your custom inventory....
Spigot is a fork of craftbukkit
Same age, email and skype as me :O #Twins :p
BUTTERcraftbro Please use the correct format so developers can understand your request easier! :)
Chintzi Bukkit.getScheduler().scheduleSyncDelayedTask(<pluginvariable>, new Runnable() { @Override public void run() { // Do something } },...
Relicum True.
Classy Make a static method/variable for Main in the Main class and then implement it into CommandAdmin?
Classy CommandAdmin shouldn't extend Main, which is why it's saying "Plugin already initialized!"
therocklobster You're welcome :)
therocklobster Try: @EventHandler public void onPlayerDropItem(PlayerDropItemEvent event) { Player p = (Player) event.getPlayer();...
Separate names with a comma.