mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-22 15:38:52 -05:00
#74 - Prospect Delay
This commit is contained in:
parent
a230c00245
commit
78030c3c6e
@ -2,6 +2,7 @@ package org.moparscape.msc.gs.plugins.plugs.skills;
|
|||||||
|
|
||||||
import org.moparscape.msc.config.Formulae;
|
import org.moparscape.msc.config.Formulae;
|
||||||
import org.moparscape.msc.gs.Instance;
|
import org.moparscape.msc.gs.Instance;
|
||||||
|
import org.moparscape.msc.gs.event.MiniEvent;
|
||||||
import org.moparscape.msc.gs.event.ShortEvent;
|
import org.moparscape.msc.gs.event.ShortEvent;
|
||||||
import org.moparscape.msc.gs.event.SingleEvent;
|
import org.moparscape.msc.gs.event.SingleEvent;
|
||||||
import org.moparscape.msc.gs.model.Bubble;
|
import org.moparscape.msc.gs.model.Bubble;
|
||||||
@ -61,8 +62,14 @@ public class Mining implements ObjectListener {
|
|||||||
}
|
}
|
||||||
final InvItem ore = new InvItem(def.getOreId());
|
final InvItem ore = new InvItem(def.getOreId());
|
||||||
if (owner.getClick() == 1) {
|
if (owner.getClick() == 1) {
|
||||||
owner.getActionSender().sendMessage(
|
Instance.getDelayedEventHandler()
|
||||||
"This rock contains " + ore.getDef().getName() + ".");
|
.add(new MiniEvent(owner, 1000) {
|
||||||
|
@Override
|
||||||
|
public void action() {
|
||||||
|
owner.getActionSender().sendMessage(
|
||||||
|
"This rock contains " + ore.getDef().getName() + ".");
|
||||||
|
}
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user