mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Engine check
This commit is contained in:
parent
a4190672d3
commit
aba5add7f9
@ -288,6 +288,11 @@ public class DecStudio implements DecreeExecutor {
|
|||||||
|
|
||||||
@Decree(description = "Charges all spawners in the area", aliases = "zzt", origin = DecreeOrigin.PLAYER)
|
@Decree(description = "Charges all spawners in the area", aliases = "zzt", origin = DecreeOrigin.PLAYER)
|
||||||
public void charge() {
|
public void charge() {
|
||||||
|
if (!IrisToolbelt.isIrisWorld(world())){
|
||||||
|
sender().sendMessage(C.RED + "You must be in an Iris world to charge spawners!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
sender().sendMessage(C.GREEN + "Charging spawners!");
|
||||||
engine().getWorldManager().chargeEnergy();
|
engine().getWorldManager().chargeEnergy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user