Update ResponseListener.java
This commit is contained in:
parent
31e16e7531
commit
9bc90def9f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user