Skip to content

Instantly share code, notes, and snippets.

Created Aug 24, 2011
Embed
What would you like to do?
public static Boolean playerCan(CommandSender sender, String node) {
if (!(sender instanceof Player)) {
return true;
} else {
Player player = (Player) sender;
if (!(lick.permissionHandler == null)) {
if (lick.permissionHandler.has(player, "lick.install")) {
return true;
} else {
return false;
}
} else {
if (player.hasPermission("lick.install")) {
return true;
} else {
return false;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment