LababoyHD Posted February 5, 2015 Posted February 5, 2015 (edited) 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 February 5, 2015 by LababoyHD
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now