Hey Guys, I'am looking for a plugin wich bans players by destroying certain blocks. There should be a command like "/banblock". if you performed...
You have to save the hashmap in a DB or something ..
You cannot perfom an event with a command .. @EventHandler public void sapling (BlockBreakEvent event) { if(event.getBlock().getType() ==...
@_Waffles: Because you cant cancel it.
"of type PlayerListener" ?? Remove the EventHandler import. You have to override the onCommand-Method, because you implemented the...
You need "@Override" above your onCommand method. Boolean sucess = false; is bullshit ..
if(args.length == 2 && args[0].equalsIgnoreCase("heal")) { Player target = this.getServer().getPlayer(args[1]); if(target == null) {...
Use the "PlayerJoinEvent". event.setJoineMessage(null);
Really ? But in my Plugin "AntiPluginList" it works fine .. Anyway, thanks for your help :) Greetings
Giant: You're right. I skipped one line in the error code .. Thanks for this answer i fixed it now :) So, there is another problem now .....
Hey, thanks for your answer. Yes, i added the command in my plugin.yml It worked fine until i tried to add the color codes. Even if i remove the...
Hey Guys, I am writing on a plugin called CommandAlert. It works fine, until i wanted to add color codes to the config. Everytime i start my...
Moin, Poste mal bitte deinen Code ------------ Hi, Please poste your code
Post your code please.
public void onEnable() { this.getCommand("command").setExecutor(class-name(this)); }
player.kickPlayer(ChatColor.RED + "KICK"); In Config: String string = plugin.getConfig().getString("String.String");...
You don't need the "object config;" That doesn't make sense..
You dont need to do this. If you want to get your config, simply use this.getConfig();
What do you want to do ? I dont know what you mean ..
If you are in your Main-Class: this.getConfig(); It's underlined yellow because you don't initialise it
Separate names with a comma.