Posted August 17, 201411 yr Good time of day! I wanna give access to some right click by item if player have permission like -dc.useTools. How i can use permissions from plugin by forge? In CustomNPCs source code i found one class and interface, but i don't understand, how it works. package noppes.npcs.permissions; import noppes.npcs.permissions.PermissionsInterface; public class CustomNpcsPermissions implements PermissionsInterface { public static PermissionsInterface Instance = new CustomNpcsPermissions(); private static final String[] permissions = new String[]{"-customnpcs.*"}; public boolean hasPermission(String username, String permission) { return true; } } package noppes.npcs.permissions; public interface PermissionsInterface { boolean hasPermission(String var1, String var2); }
August 17, 201411 yr I would ask the author of CustomNPCs, since he or she would likely know and anybody else would not. -S- (if I helped, please click Thank and applaud) http://6upnqa.dm2301.livefilestore.com/y2mtf-vG7Tqq1TiiVpIm53KWj7294NDPoHfSHHb4PzZiMAUfRCfK0UY0MwOu7Q3zTBNVTKqWjr2-xgBfFRpQT5p-QivtvknPpoABMNUw9br9WuZcBFkjePhnAbW500gVm-P/sequiturian.png[/img]
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.