mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Debug command should try to use sender as player context if none is given
This commit is contained in:
1 parent
a7bae1e329
commit
3517b6068a
2 files changed
+4
-1
No files matched your search
@@ -119,5 +119,4 @@
|
||||
<url>file:///var/lib/jenkins/repo</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
</project>
|
||||
@@ -45,6 +45,10 @@ public class CommandDebug extends CommandBase {
|
||||
Player player = null;
|
||||
if (args.length == 1) {
|
||||
player = Bukkit.getPlayer(args[0]);
|
||||
} else {
|
||||
if (cs instanceof Player) {
|
||||
player = (Player) cs;
|
||||
}
|
||||
}
|
||||
|
||||
cs.sendMessage(GRAY + "Please wait while I collect some data...");
|
||||
|
||||
Reference in new issue
Block a user