Jump to content

Minecraft Plugin problem


Recommended Posts

Hey, kann mir wer meinen code verbessern,


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")) {



} 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


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

  • Create New...