Update ResponseListener.java
This commit is contained in:
parent
31e16e7531
commit
9bc90def9f
@ -31,18 +31,13 @@ public class ResponseListener implements Listener {
|
|||||||
if (!bool) return;
|
if (!bool) return;
|
||||||
for (ResponsesObject response : Main.allResponses) {
|
for (ResponsesObject response : Main.allResponses) {
|
||||||
if (!response.permNecessary || player.hasPermission(response.permission)) {
|
if (!response.permNecessary || player.hasPermission(response.permission)) {
|
||||||
send.debugmsg(Main.plugin, "key: " + response.responseKey);
|
|
||||||
if (response.contains) {
|
if (response.contains) {
|
||||||
send.debugmsg(Main.plugin, "1");
|
|
||||||
if (e.getMessage().contains(response.responseKey)) {
|
if (e.getMessage().contains(response.responseKey)) {
|
||||||
send.debugmsg(Main.plugin, "2");
|
|
||||||
execute(e, player, response);
|
execute(e, player, response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
send.debugmsg(Main.plugin, "3");
|
|
||||||
if (e.getMessage().equals(response.responseKey)) {
|
if (e.getMessage().equals(response.responseKey)) {
|
||||||
send.debugmsg(Main.plugin, "4");
|
|
||||||
execute(e, player, response);
|
execute(e, player, response);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user