it should, but I assume you'll need to add a space to "teach Stupefy" + p.getName()
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "command here");
that worked, thank you
I need my code to run only if this event is cancelled, however it's running even if another plugin (WorldGuard) cancels the event....
I figured I'd revive this thread for those who need to know how to do this (it took me quite a while to figure this out)
for (HelpTopic cmdLabel...
You're not indenting properly
description: Say Hi to the server!
usage: Oops, try /WCPHello
I'm working on a plugin that needs to create/delete worlds with Multiverse.
I can't seem to find any documentation on how to hook it. Does anyone...
Hello! I need to get the block a player right clicks after running a command. How could I do this?
Ah, thank you very much.
Hello! I was wondering how I can use .yml files similarly to config.yml
Currently I'm using the config.yml for everything (configuration, saving...
Ah, there we go. Thanks.
Hello! I was wondering if there is a way to copy commented lines from the default config.yml to the generated config.yml? Currently, only...
Thank you, that worked :)
Line 48 in the main class is
console.sendMessage(ChatColor.GREEN + "[E] E is up to date! (Version " + this.updateChecker.getVersion() + ")");
I'm adding an update checker to my plugin. So far I have this:
Server server = Bukkit.getServer();
ConsoleCommandSender console =...
It looks like all I need to do is loop through the (*the command sender*).hidePlayer(*the person who joined*) when a player joins. That's all I...
The point isn't to vanish all players on the entire server, it's to hide the players from the command sender
How would I do that? I can't seem to figure it out
//Main class (E.class):
public static ArrayList<String> hidden = new ArrayList<String>();
public static ArrayList<String> online = new...
Separate names with a comma.