by Etsijä » December 29th, 2011, 1:10 am
This is an awesome plugin, but it seems to be a bit outdated with new bukkit builds. For example, when I take your java code (version 1.2.3) into Eclipse and try to compile it, it gives me an error about the
import com.nijikokun.bukkit.Permissions.Permissions;
The reason is there is no such thing in craftbukkit.jar anymore. Maybe this is due to the inherent permissions support nowadays? Eclipse suggests me to change into using "org.bukkit.permissions.Permission" instead, and then, on the line
Permissions permissions = null;
it suggests me to change into
Permission permissions = null;
This goes well, but then I bump into another error in function hasPerm(), more precisely in
return permissions.getHandler().has(player, perm);
Could you kindly advice me as to what changes to make such that the plugin supports 1.0 also on permissions handling? I've tried to find information from Bukkit regarding handling permissions in plugins, but have found none.
- - -
Another note: player.updateInventory() seems to be deprecated.