mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-05 08:39:04 +00:00
Fix dark wizzies aggro, add more togglerender commands and add it to ::commands itself, fixed spam clicking tree gives a ton of logs (#185)
* Finish #167 * Fix #182 * Fixed #183
This commit is contained in:
@@ -130,7 +130,7 @@ public class Commands implements PacketType {
|
||||
player.getPlayerAssistant().closeAllWindows();
|
||||
break;
|
||||
case "commands":
|
||||
player.getActionSender().sendMessage("::players, ::highscores, ::loc, ::stuck, ::randomtoggle, ::debug");
|
||||
player.getActionSender().sendMessage("::players, ::highscores, ::loc, ::stuck, ::randomtoggle, ::debug, ::togglegfx");
|
||||
break;
|
||||
case "loc":
|
||||
player.getActionSender().sendMessage(player.absX + "," + player.absY);
|
||||
@@ -456,6 +456,14 @@ public class Commands implements PacketType {
|
||||
}
|
||||
player.getActionSender().sendMessage("Could not find " + teleTo + " they must be online!");
|
||||
break;
|
||||
case "tp":
|
||||
case "teleport":
|
||||
case "to":
|
||||
if (arguments.length <= 2)
|
||||
player.getPlayerAssistant().movePlayer(Integer.parseInt(arguments[0]), Integer.parseInt(arguments[1]), 0);
|
||||
else
|
||||
player.getPlayerAssistant().movePlayer(Integer.parseInt(arguments[0]), Integer.parseInt(arguments[1]), Integer.parseInt(arguments[2]));
|
||||
break;
|
||||
case "up":
|
||||
player.getPlayerAssistant().movePlayer(player.absX, player.absY, player.heightLevel + 1);
|
||||
player.getActionSender().sendMessage("You are now on height level " + player.heightLevel + ".");
|
||||
|
||||
Reference in New Issue
Block a user