mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
CMD -> Dec + fixes
This commit is contained in:
parent
22d215b2c7
commit
4215bfc6fe
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -23,13 +23,13 @@ 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(
|
||||||
@Param(name = "message",defaultValue = "Pong", aliases = {"msg", "m"})
|
@Param(name = "message", defaultValue = "Pong", aliases = {"msg", "m"})
|
||||||
String message)
|
String message)
|
||||||
{
|
{
|
||||||
sender().sendMessage(message + "!");
|
sender().sendMessage(message + "!");
|
@ -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)
|
Loading…
x
Reference in New Issue
Block a user