API's.. API's..
create your own command registration
You never restate the Color.
No, like this: package me.pedropicas.MPTCore; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.Command; import...
You check if there are arguments AFTER the code has executed. Try this statement before the code: if(args.length == 0) {...
@Bloxcraft Did you even read the code? I did use color codes. (not trying to be rude) [IMG] Bump. Can someone Please help. EDIT by Moderator:...
I've never worked with cases but shouldn't you do switch (yourItem.get type); case Material.IRON_BLOCK; case Material.YOUR_ITEM; Instead of just...
@AdamQpzm either way it turns out to be "". Can someone help please?
I give up.
Now your saying cohm.ent is from your RemoveEntities class. Before you were saying it was the CommandHandler class.
Why do you reffer to the class inside the class? Thats like doing public class Main extends JavaPlugin { Main plugin; @Override public void...
What. So you set ent.. but ent is also in command handler class... so.. there are two ents? I'm extremely confused.
Whats the "cohm"
[IMG] Here's a better version that catches arguments: [IMG] You can add as many commands as you want. @EventHandler public void...
I don't know what "comh.ent" is, and it could be null.
If you mean that you want to compare entitys you can do this: [IMG]
@Fuzzybear04 PlayerInteractEvent uses less recources. Every time the player interacts with the world (press a button, step on a pressure plate,...
[IMG] Replace yourLoc = null with yourLoc = *Your location* Like [IMG] And use that in setting your location.
Player hits entity. Start timer that makes a double go up by 0.1 Player hits entity again Stop timer You have time between each hit. Thing is, if...
You can't convert a string into a entity. You can only turn it into a entity type, then create a entity using that entity type.
Separate names with a comma.