Update ResponseListener.java

This commit is contained in:
JaTiTV 2022-01-28 22:11:30 +01:00
parent 31e16e7531
commit 9bc90def9f
1 changed files with 0 additions and 5 deletions

View File

@ -31,18 +31,13 @@ public class ResponseListener implements Listener {
if (!bool) return;
for (ResponsesObject response : Main.allResponses) {
if (!response.permNecessary || player.hasPermission(response.permission)) {
send.debugmsg(Main.plugin, "key: " + response.responseKey);
if (response.contains) {
send.debugmsg(Main.plugin, "1");
if (e.getMessage().contains(response.responseKey)) {
send.debugmsg(Main.plugin, "2");
execute(e, player, response);
return;
}
} else {
send.debugmsg(Main.plugin, "3");
if (e.getMessage().equals(response.responseKey)) {
send.debugmsg(Main.plugin, "4");
execute(e, player, response);
return;
}