From c231da784917810ab32a17f22708afec2e28b131 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 23 Dec 2015 13:30:30 +0100 Subject: [PATCH] new plugin file (TODO) --- newPlugin.yml | 201 ++++++++++++++++++++++ src/main/java/fr/xephi/authme/AuthMe.java | 6 +- 2 files changed, 203 insertions(+), 4 deletions(-) create mode 100644 newPlugin.yml diff --git a/newPlugin.yml b/newPlugin.yml new file mode 100644 index 00000000..78313cdf --- /dev/null +++ b/newPlugin.yml @@ -0,0 +1,201 @@ +name: ${pluginName} +authors: [${pluginAuthors}] +website: ${project.url} +description: ${project.description} +main: ${mainClass} +version: ${project.version}-b${buildNumber} +softdepend: + - Vault + - PermissionsBukkit + - PermissionsEX + - EssentialsGroupManager + - Multiverse-Core + - Essentials + - EssentialsSpawn + - ProtocolLib +commands: + authme: + description: AuthMe admin commands + usage: '/authme reload|register playername password|changepassword playername password|unregister playername|version|converter datatype' + permission: authme.admin + register: + description: Register an account + usage: /register password confirmpassword + aliases: [reg] + permission: authme.player.register + login: + description: Login into a account + usage: /login password + aliases: [l,log] + permission: authme.player.login + changepassword: + description: Change password of a account + usage: /changepassword oldPassword newPassword + permission: authme.player.changepassword + logout: + description: Logout from the server + usage: /logout + permission: authme.player.logout + unregister: + description: unregister your account + usage: /unregister password + permission: authme.player.unregister + email: + description: Add Email or recover password + usage: '/email add your@email.com your@email.com|change oldEmail newEmail|recovery your@email.com' + permission: authme.player.email + captcha: + description: Captcha command + usage: /captcha theCaptcha + permission: authme.player.captcha +permissions: + authme.player: + description: Gives access to all authme player commands + children: + authme.player.login: true + authme.player.logout: true + authme.player.register: true + authme.player.unregister: true + authme.player.changepassword: true + authme.player.captcha: true + authme.player.email: true + authme.player.email.add: true + authme.player.email.change: true + authme.player.email.recover: true + authme.player.canbeforced: true + authme.admin: + description: Gives access to all authme admin commands + children: + authme.player: true + authme.player.canbeforced: false + authme.admin.forcelogin: true + authme.admin.forcelogout: true + authme.admin.register: true + authme.admin.unregister: true + authme.admin.changemail: true + authme.admin.changepassword: true + authme.admin.lastlogin: true + authme.admin.accounts: true + authme.admin.getemail: true + authme.admin.getip: true + authme.admin.resetposition: true + authme.admin.setspawn: true + authme.admin.spawn: true + authme.admin.setfirstspawn: true + authme.admin.firstspawn: true + authme.admin.purge: true + authme.admin.purgebannedplayers: true + authme.admin.purgelastpos: true + authme.admin.converter: true + authme.admin.reload: true + authme.admin.switchantibot: true + authme.seeotheraccounts: true + authme.bypassantibot: true + authme.register: + description: Register an account + default: true + authme.unregister: + description: unregister your account + default: true + authme.login: + description: Login into a account + default: true + authme.logout: + description: Logout + default: true + authme.changepassword: + description: Change password of a account + default: true + authme.email: + description: Email base command + default: true + authme.player.email.add: + description: Email add command + default: true + authme.player.email.change: + description: Email change command + default: true + authme.player.email.recover: + description: Recovery command + default: true + authme.player.captcha: + description: Captcha command + default: true + authme.player.canbeforced: + description: Allow the user to be forced-logged via API + default: true + authme.admin.reload: + description: AuthMe reload commands + default: op + authme.admin.register: + description: AuthMe register command + default: op + authme.admin.changepassword: + description: AuthMe changepassword command + default: op + authme.admin.unregister: + description: AuthMe unregister command + default: op + authme.admin.purge: + description: AuthMe unregister command + default: op + authme.admin.lastlogin: + description: Get last login date about a player + default: op + authme.admin.getemail: + description: Get last email about a player + default: op + authme.admin.changeemail: + description: Change a player email + default: op + authme.admin.accounts: + description: Display Players Accounts + default: op + authme.admin.setspawn: + description: Set the AuthMe spawn point + default: op + authme.admin.spawn: + description: Teleport to AuthMe spawn point + default: op + authme.admin.purgebannedplayers: + description: Purge banned players + default: op + authme.admin.purgelastpos: + description: Purge last pos of players + default: op + authme.admin.switchantibot: + description: Switch AntiBot mode on/off + default: op + authme.admin.setfirstspawn: + description: Set the AuthMe First Spawn Point + default: op + authme.admin.firstspawn: + description: Teleport to AuthMe First Spawn Point + default: op + authme.admin.getip: + description: Get IP from a player ( fake and real ) + default: op + authme.admin.converter: + description: Allow /converter command + default: op + authme.admin.resetposition: + description: Reset last position for a player + default: op + authme.admin.forcelogin: + description: Force login for that player + default: op + authme.vip: + description: Allow vip slot when the server is full + default: op + authme.bypassantibot: + description: Bypass the AntiBot check + default: op + authme.seeotheraccounts: + description: display other accounts about a player when he logs in + default: op + authme.allowmoreaccounts: + description: allow more accounts for same ip + default: false + authme.bypassforcesurvival: + description: Bypass all ForceSurvival features + default: false diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index cd4e1e47..3ac4f9ce 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -83,10 +83,7 @@ public class AuthMe extends JavaPlugin { private static String pluginVersion = "N/D"; private static String pluginBuildNumber = "Unknown"; - /* - * Private Instances - * TODO: should we set every instance to null as initial status? - */ + // Private Instances private static AuthMe plugin; private static Server server; private static Wrapper wrapper = Wrapper.getInstance(); @@ -194,6 +191,7 @@ public class AuthMe extends JavaPlugin { // Set various instances server = getServer(); plugin = this; + setPluginInfos(); // Set up the permissions manager and command handler