mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Forgot a few name to UUID conversions
This commit is contained in:
1 parent
f26e63b45f
commit
b0864be3d4
8 files changed
+127
-123
No files matched your search
@@ -1,50 +1,50 @@
|
||||
/*
|
||||
* AntiCheat for Bukkit.
|
||||
* Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.gravitydevelopment.anticheat.command.executors;
|
||||
|
||||
import net.gravitydevelopment.anticheat.command.CommandBase;
|
||||
import net.gravitydevelopment.anticheat.util.Permission;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class CommandHelp extends CommandBase {
|
||||
|
||||
private static final String NAME = "AntiCheatReloaded Help";
|
||||
private static final String COMMAND = "help";
|
||||
private static final String USAGE = "anticheat help";
|
||||
private static final Permission PERMISSION = Permission.SYSTEM_HELP;
|
||||
private static final String[] HELP = {
|
||||
RED + "/anti " + GRAY + "help",
|
||||
RED + "/anti " + GRAY + "reload",
|
||||
RED + "/anti " + GRAY + "update",
|
||||
RED + "/anti " + GRAY + "debug " + WHITE + "<user>",
|
||||
RED + "/anti " + GRAY + "check " + WHITE + "[check] [on/off]",
|
||||
RED + "/anti " + GRAY + "log " + WHITE + "[file/console] [on/off]",
|
||||
RED + "/anti " + GRAY + "report " + WHITE + "[group/user]",
|
||||
RED + "/anti " + GRAY + "reset " + WHITE + "[user]",
|
||||
};
|
||||
|
||||
public CommandHelp() {
|
||||
super(NAME, COMMAND, USAGE, HELP, PERMISSION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void execute(CommandSender cs, String[] args) {
|
||||
sendHelp(cs);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* AntiCheat for Bukkit.
|
||||
* Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.gravitydevelopment.anticheat.command.executors;
|
||||
|
||||
import net.gravitydevelopment.anticheat.command.CommandBase;
|
||||
import net.gravitydevelopment.anticheat.util.Permission;
|
||||
import org.bukkit.command.CommandSender;
|
||||
|
||||
public class CommandHelp extends CommandBase {
|
||||
|
||||
private static final String NAME = "AntiCheatReloaded Help";
|
||||
private static final String COMMAND = "help";
|
||||
private static final String USAGE = "anticheat help";
|
||||
private static final Permission PERMISSION = Permission.SYSTEM_HELP;
|
||||
private static final String[] HELP = {
|
||||
RED + "/anti " + GRAY + "help",
|
||||
RED + "/anti " + GRAY + "reload",
|
||||
RED + "/anti " + GRAY + "update",
|
||||
RED + "/anti " + GRAY + "debug " + WHITE + "<user>",
|
||||
RED + "/anti " + GRAY + "check " + WHITE + "[check] [on/off]",
|
||||
RED + "/anti " + GRAY + "log " + WHITE + "[file/console] [on/off]",
|
||||
RED + "/anti " + GRAY + "report " + WHITE + "[group/user]",
|
||||
RED + "/anti " + GRAY + "reset " + WHITE + "[user]",
|
||||
};
|
||||
|
||||
public CommandHelp() {
|
||||
super(NAME, COMMAND, USAGE, HELP, PERMISSION);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void execute(CommandSender cs, String[] args) {
|
||||
sendHelp(cs);
|
||||
}
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public class CommandReport extends CommandBase {
|
||||
|
||||
// Test users
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
if (player.getName().equalsIgnoreCase(args[0])) {
|
||||
if (player.getUniqueId().equals(Bukkit.getPlayer(args[0]).getUniqueId())) {
|
||||
User user = AntiCheat.getManager().getUserManager().getUser(player.getUniqueId());
|
||||
playerReport(cs, user, page);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user