forked from MagicBane/Server
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
59 lines
1.7 KiB
3 years ago
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
||
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
||
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
||
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
||
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
||
|
// Magicbane Emulator Project © 2013 - 2022
|
||
|
// www.magicbane.com
|
||
|
|
||
|
|
||
|
|
||
|
package engine.devcmd.cmds;
|
||
|
|
||
|
import engine.devcmd.AbstractDevCmd;
|
||
|
import engine.gameManager.ChatManager;
|
||
|
import engine.objects.AbstractGameObject;
|
||
|
import engine.objects.PlayerCharacter;
|
||
|
|
||
|
public class DebugMeleeSyncCmd extends AbstractDevCmd {
|
||
|
|
||
|
public DebugMeleeSyncCmd() {
|
||
|
super("debugmeleesync");
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected void _doCmd(PlayerCharacter pc, String[] words,
|
||
|
AbstractGameObject target) {
|
||
|
// Arg Count Check
|
||
|
if (words.length != 1) {
|
||
|
this.sendUsage(pc);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
String s = words[0].toLowerCase();
|
||
|
|
||
|
if (s.equals("on")) {
|
||
|
pc.setDebug(64, true);
|
||
|
ChatManager.chatSayInfo(pc, "Melee Sync Debug ON");
|
||
|
} else if (s.equals("off")) {
|
||
|
pc.setDebug(64, false);
|
||
|
ChatManager.chatSayInfo(pc, "Melee Sync Debug OFF");
|
||
|
} else {
|
||
|
this.sendUsage(pc);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected String _getHelpString() {
|
||
|
return "Turns on/off melee sync debugging.";
|
||
|
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
protected String _getUsageString() {
|
||
|
return "'./debugmeleesync on|off'";
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|