Help - Error with this plugin

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

YosemiteOG

Premium
Feedback score
5
Posts
1,193
Reactions
532
Resources
0
The command loads, Console can do it. I can also tab it - but when I use it, it doesn't do anything.

I have also put it in the plugin.yml.
 

YosemiteOG

Premium
Feedback score
5
Posts
1,193
Reactions
532
Resources
0
Code:
if (cmd.getName().equalsIgnoreCase("testfly") {
    if (sender instanceof Player) {
        //Do stuff
    } else {
        bukkit.getLogger().info("You ran a command");
    }
    return false;
}
Check if it's the right command before you do stuff with the sender.

Also if you want someone to be able to fly you have to do
Code:
p.setAllowFlight(true);
p.setFlying(true);

There's no need to log when the plugin is enabling/disabling. It does that automatically.

Add @Override over your on enable method
Cheers, means a lot.
 
Status
This thread has been locked.
Top