This commit is contained in:
CocoTheOwner 2021-08-16 18:13:57 +02:00
parent 7c5d8721c0
commit 571e918ee0

View File

@ -19,6 +19,7 @@
package com.volmit.iris.core.decrees;
import com.volmit.iris.Iris;
import com.volmit.iris.core.IrisSettings;
import com.volmit.iris.util.decree.DecreeExecutor;
import com.volmit.iris.util.decree.annotations.Decree;
import com.volmit.iris.util.decree.annotations.Param;
@ -32,4 +33,20 @@ public class DecIris implements DecreeExecutor
public void version(){
sender().sendMessage("Iris v" + Iris.instance.getDescription().getVersion() + " by Volmit Software");
}
@Decree(description = "Set aura spins")
public void aura(
@Param(name = "h", description = "The h color value")
int h,
@Param(name = "s", description = "The s color value")
int s,
@Param(name = "b", description = "The b color value")
int b
){
IrisSettings.get().getGeneral().setSpinh(h);
IrisSettings.get().getGeneral().setSpins(s);
IrisSettings.get().getGeneral().setSpinb(b);
IrisSettings.get().forceSave();
sender().sendMessage("<rainbow>Aura Spins updated to " + h + " " + s + " " + b);
}
}