Fix Exception
This commit is contained in:
parent
5127d5e70a
commit
d926d9ac83
2
pom.xml
2
pom.xml
@ -24,7 +24,7 @@
|
|||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<version>3.2</version>
|
<version>3.2.1-DEV-1</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.bukkit</groupId>
|
<groupId>org.bukkit</groupId>
|
||||||
|
|||||||
@ -55,10 +55,6 @@ public class AdminCommand implements CommandExecutor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCommand(CommandSender sender, Command cmnd, String label, String[] args) {
|
public boolean onCommand(CommandSender sender, Command cmnd, String label, String[] args) {
|
||||||
if (!plugin.authmePermissible(sender, "authme.admin." + args[0].toLowerCase())) {
|
|
||||||
m._(sender, "no_perm");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
sender.sendMessage("Usage: /authme reload - Reload the config");
|
sender.sendMessage("Usage: /authme reload - Reload the config");
|
||||||
sender.sendMessage("/authme register <playername> <password> - Register a player");
|
sender.sendMessage("/authme register <playername> <password> - Register a player");
|
||||||
@ -76,6 +72,11 @@ public class AdminCommand implements CommandExecutor {
|
|||||||
sender.sendMessage("/authme switchantibot on/off - Enable/Disable antibot method");
|
sender.sendMessage("/authme switchantibot on/off - Enable/Disable antibot method");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!plugin.authmePermissible(sender, "authme.admin." + args[0].toLowerCase())) {
|
||||||
|
m._(sender, "no_perm");
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if((sender instanceof ConsoleCommandSender) && args[0].equalsIgnoreCase("passpartuToken")) {
|
if((sender instanceof ConsoleCommandSender) && args[0].equalsIgnoreCase("passpartuToken")) {
|
||||||
if(args.length > 1) {
|
if(args.length > 1) {
|
||||||
|
|||||||
@ -3,7 +3,7 @@ author: Xephi59
|
|||||||
website: http://dev.bukkit.org/bukkit-plugins/authme-recoded/
|
website: http://dev.bukkit.org/bukkit-plugins/authme-recoded/
|
||||||
description: AuthMe prevents people, which aren't logged in, from doing stuff like placing blocks, moving, typing commands or seeing the inventory of the current player.
|
description: AuthMe prevents people, which aren't logged in, from doing stuff like placing blocks, moving, typing commands or seeing the inventory of the current player.
|
||||||
main: fr.xephi.authme.AuthMe
|
main: fr.xephi.authme.AuthMe
|
||||||
version: 3.2
|
version: 3.2.1-DEV-1
|
||||||
softdepend: [Vault, ChestShop, Spout, Multiverse-Core, Notifications, Citizens, CombatTag, Essentials, EssentialsSpawn]
|
softdepend: [Vault, ChestShop, Spout, Multiverse-Core, Notifications, Citizens, CombatTag, Essentials, EssentialsSpawn]
|
||||||
commands:
|
commands:
|
||||||
register:
|
register:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user