mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-18 20:40:18 -07:00
Update PlayerCommandPlugin.java
This commit is contained in:
parent
453694e4bf
commit
ccd7cc582f
1 changed files with 6 additions and 6 deletions
|
|
@ -37,7 +37,8 @@ public final class PlayerCommandPlugin extends CommandPlugin {
|
||||||
@Override
|
@Override
|
||||||
public boolean parse(Player player, String name, String[] arguments) {
|
public boolean parse(Player player, String name, String[] arguments) {
|
||||||
switch (name) {
|
switch (name) {
|
||||||
|
/*
|
||||||
|
* Disabled commands
|
||||||
case "shutdowninterface":
|
case "shutdowninterface":
|
||||||
player.getInterfaceManager().close();
|
player.getInterfaceManager().close();
|
||||||
break;
|
break;
|
||||||
|
|
@ -46,8 +47,9 @@ public final class PlayerCommandPlugin extends CommandPlugin {
|
||||||
int stage = Integer.parseInt(arguments[1]);
|
int stage = Integer.parseInt(arguments[1]);
|
||||||
TutorialStage.load(player, stage, false);
|
TutorialStage.load(player, stage, false);
|
||||||
break;
|
break;
|
||||||
|
*/
|
||||||
|
|
||||||
case "resettabs":
|
case "bankresettabs":
|
||||||
for (int i = 0; i < player.getBank().getTabStartSlot().length; i++) {
|
for (int i = 0; i < player.getBank().getTabStartSlot().length; i++) {
|
||||||
player.getBank().getTabStartSlot()[i] = 0;
|
player.getBank().getTabStartSlot()[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -57,7 +59,8 @@ public final class PlayerCommandPlugin extends CommandPlugin {
|
||||||
}
|
}
|
||||||
player.getPacketDispatch().sendMessage("Bank tabs are reset!");
|
player.getPacketDispatch().sendMessage("Bank tabs are reset!");
|
||||||
return true;
|
return true;
|
||||||
case "resetpin":
|
|
||||||
|
case "bankresetpin":
|
||||||
if (arguments.length < 2) {
|
if (arguments.length < 2) {
|
||||||
player.sendMessage("Syntax error: ::resetpin oldpin");
|
player.sendMessage("Syntax error: ::resetpin oldpin");
|
||||||
return true;
|
return true;
|
||||||
|
|
@ -125,9 +128,6 @@ public final class PlayerCommandPlugin extends CommandPlugin {
|
||||||
player.sendMessage("Bad! No images/text effects allowed in yell chat.");
|
player.sendMessage("Bad! No images/text effects allowed in yell chat.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if(text.contains("aq p")){
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
int length = text.length();
|
int length = text.length();
|
||||||
if (length > 100) {
|
if (length > 100) {
|
||||||
length = 100;
|
length = 100;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue