mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +00:00
version
This commit is contained in:
parent
d0faaf2d53
commit
7920d2225c
@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
package com.volmit.iris.core.decrees;
|
package com.volmit.iris.core.decrees;
|
||||||
|
|
||||||
|
import com.volmit.iris.Iris;
|
||||||
import com.volmit.iris.util.decree.DecreeExecutor;
|
import com.volmit.iris.util.decree.DecreeExecutor;
|
||||||
import com.volmit.iris.util.decree.annotations.Decree;
|
import com.volmit.iris.util.decree.annotations.Decree;
|
||||||
import com.volmit.iris.util.decree.annotations.Param;
|
import com.volmit.iris.util.decree.annotations.Param;
|
||||||
@ -27,11 +28,16 @@ public class DecIris implements DecreeExecutor
|
|||||||
{
|
{
|
||||||
private DecIrisStudio studio;
|
private DecIrisStudio studio;
|
||||||
|
|
||||||
@Decree(description = "Ping self", aliases = "p")
|
@Decree(description = "Send a message to yourself", aliases = "p")
|
||||||
public void ping(
|
public void ping(
|
||||||
@Param(name = "message", defaultValue = "Pong", aliases = {"msg", "m"})
|
@Param(name = "message", description = "The message to send", defaultValue = "Pong", aliases = {"msg", "m"})
|
||||||
String message)
|
String message)
|
||||||
{
|
{
|
||||||
sender().sendMessage(message + "!");
|
sender().sendMessage(message + "!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Decree(description = "Print version information", aliases = {"v", "ver"})
|
||||||
|
public void version(){
|
||||||
|
sender().sendMessage("Iris v" + Iris.instance.getDescription().getVersion() + " by Volmit Software");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user