Changed action cards logic. x6
This commit is contained in:
parent
67fa1076de
commit
2c8051ef00
@ -250,7 +250,7 @@ public class BunkerBot extends TelegramLongPollingBot {
|
|||||||
try {
|
try {
|
||||||
return HashUtils.getCRC32(s.getDeclaredConstructor().newInstance().getName().getBytes()).equals(data);
|
return HashUtils.getCRC32(s.getDeclaredConstructor().newInstance().getName().getBytes()).equals(data);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -265,7 +265,7 @@ public class BunkerBot extends TelegramLongPollingBot {
|
|||||||
try {
|
try {
|
||||||
script.getDeclaredConstructor(BunkerBot.class, Player.class).newInstance(this, p).execute();
|
script.getDeclaredConstructor(BunkerBot.class, Player.class).newInstance(this, p).execute();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.getMessage());
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user