Jump to content

Minecraft Plugin problem


LababoyHD
 Share

Recommended Posts

Hey, kann mir wer meinen code verbessern,

@Override

public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {

Player p = (Player) sender;

if(p.hasPermission("use.dn")) {

if(cmd.getName().equalsIgnoreCase("day")) {

plugin.onDay(p);

}

} else {

p.sendMessage(plugin.prefix + plugin.noperm);

}

return true;

}

Mein problem ist das wen man die Permission nicht hat das dan nicht der String im Chat gesendet wird

LG, Lababoy

Problem hat sich gelöst

//voe4close

Edited by LababoyHD
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...
B
B