SHOW:
|
|
- or go back to the newest paste.
| 1 | - | /*+------------------------------------------------------------------+ |
| 1 | + | class KillTimer extends TimerTask |
| 2 | - | * |
| 2 | + | {
|
| 3 | - | * Timer |
| 3 | + | |
| 4 | - | * |
| 4 | + | public void run() |
| 5 | - | *+------------------------------------------------------------------+ */ |
| 5 | + | {
|
| 6 | - | |
| 6 | + | if (System.currentTimeMillis() - KillUpdate > KillDelay) |
| 7 | - | class KillTimer extends TimerTask |
| 7 | + | {
|
| 8 | - | {
|
| 8 | + | KillUpdate = System.currentTimeMillis(); |
| 9 | - | |
| 9 | + | jpCheck() |
| 10 | - | public void run() |
| 10 | + | } |
| 11 | - | {
|
| 11 | + | } |
| 12 | - | if (System.currentTimeMillis() - KillUpdate > KillDelay) |
| 12 | + | } |
| 13 | - | {
|
| 13 | + | |
| 14 | - | KillUpdate = System.currentTimeMillis(); |
| 14 | + | |
| 15 | - | jpCheck() |
| 15 | + | {
|
| 16 | - | } |
| 16 | + | b.sendUnfilteredPublicMessage("?jackpot");
|
| 17 | - | } |
| 17 | + | |
| 18 | public void handleMessageEvents(Message event) | |
| 19 | - | |
| 19 | + | {
|
| 20 | if (event.getMessage().contains("Current Jackpot: "))
| |
| 21 | - | {
|
| 21 | + | {
|
| 22 | - | String message = event.getMessage(); |
| 22 | + | String jp = message.trim().split("Current Jackpot: ",-1)[1];
|
| 23 | - | bot.ba.sendUnfilteredPublicMessage("?jackpot");
|
| 23 | + | bot.ba.sendArenaMessage("Current Jackpot is : "+jp);
|
| 24 | - | if (event.getMessage().contains("Current Jackpot: "))
|
| 24 | + | JP = jp; |
| 25 | - | {
|
| 25 | + | } |
| 26 | - | String jp = message.trim().split("Current Jackpot: ",-1)[1];
|
| 26 | + | } |