Skip to content

Commit

Permalink
Update MassTpaHack.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mdenials authored Nov 12, 2023
1 parent 69a1119 commit 41fd020
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/main/java/net/wurstclient/hacks/MassTpaHack.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,10 @@ public void onEnable()

if (!commandSetup.getValue().contains("tp"))
{
errorComment("Commands other than tp are not available.");
ChatUtils.error("Commands other than tp are not available.");
setEnabled(false);
}
}

private void errorComment(String comment) {
ChatUtils.error(comment);
setEnabled(false);
}

@Override
public void onDisable()
Expand Down Expand Up @@ -127,14 +123,14 @@ public void onReceivedMessage(ChatInputEvent event)
if(message.contains("/help") || message.contains("permission"))
{
event.cancel();
ChatUtils.message("This server doesn't have " + this.commandSetup.getValue() + ".");
ChatUtils.error("This server doesn't have " + this.commandSetup.getValue() + ".");
setEnabled(false);

}else if(message.contains("accepted") && message.contains("request")
|| message.contains("akzeptiert") && message.contains("anfrage"))
{
event.cancel();
ChatUtils.message("Someone accepted your" + this.commandSetup.getValue() + "request. Stopping.");
ChatUtils.error("Someone accepted your" + this.commandSetup.getValue() + "request. Stopping.");
setEnabled(false);
}
}
Expand Down

0 comments on commit 41fd020

Please sign in to comment.