CMD -> Dec + fixes

This commit is contained in:
CocoTheOwner 2021-08-13 21:22:22 +02:00
parent 22d215b2c7
commit 4215bfc6fe
3 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@
package com.volmit.iris.core; package com.volmit.iris.core;
import com.volmit.iris.Iris; import com.volmit.iris.Iris;
import com.volmit.iris.core.decrees.CMDIris; import com.volmit.iris.core.decrees.DecIris;
import com.volmit.iris.engine.data.cache.AtomicCache; import com.volmit.iris.engine.data.cache.AtomicCache;
import com.volmit.iris.util.collection.KList; import com.volmit.iris.util.collection.KList;
import com.volmit.iris.util.decree.DecreeSystem; import com.volmit.iris.util.decree.DecreeSystem;
@ -37,7 +37,7 @@ public class CommandManager implements DecreeSystem {
public VirtualDecreeCommand getRoot() { public VirtualDecreeCommand getRoot() {
return commandCache.aquire(() -> { return commandCache.aquire(() -> {
try { try {
return VirtualDecreeCommand.createRoot(new CMDIris()); return VirtualDecreeCommand.createRoot(new DecIris());
} catch (Throwable e) { } catch (Throwable e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@ -23,9 +23,9 @@ import com.volmit.iris.util.decree.annotations.Decree;
import com.volmit.iris.util.decree.annotations.Param; import com.volmit.iris.util.decree.annotations.Param;
@Decree(name = "irisd", aliases = {"ird"}, description = "Basic Command") @Decree(name = "irisd", aliases = {"ird"}, description = "Basic Command")
public class CMDIris implements DecreeExecutor public class DecIris implements DecreeExecutor
{ {
private CMDIrisStudio studio; private DecIrisStudio studio;
@Decree(description = "Ping self", aliases = "p") @Decree(description = "Ping self", aliases = "p")
public void ping( public void ping(

View File

@ -26,7 +26,7 @@ import com.volmit.iris.util.decree.annotations.Param;
import com.volmit.iris.util.format.C; import com.volmit.iris.util.format.C;
@Decree(name = "studio", aliases = {"std", "s"}, description = "Studio Commands", studio = true) @Decree(name = "studio", aliases = {"std", "s"}, description = "Studio Commands", studio = true)
public class CMDIrisStudio implements DecreeExecutor public class DecIrisStudio implements DecreeExecutor
{ {
@Decree(description = "Open a new studio world", aliases = "o", sync = true) @Decree(description = "Open a new studio world", aliases = "o", sync = true)
public void open( public void open(
@ -35,7 +35,7 @@ public class CMDIrisStudio implements DecreeExecutor
@Param(name = "seed", defaultValue = "1337", aliases = "s") @Param(name = "seed", defaultValue = "1337", aliases = "s")
long seed) long seed)
{ {
Iris.proj.open(sender(), dimension.getLoadKey()); Iris.proj.open(sender(), seed, dimension.getLoadKey());
} }
@Decree(description = "Close an open studio project", aliases = "x", sync = true) @Decree(description = "Close an open studio project", aliases = "x", sync = true)