mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-05 23:36:12 +00:00
Refine decree
This commit is contained in:
@@ -20,6 +20,7 @@ package com.volmit.iris.util.plugin;
|
||||
|
||||
import com.volmit.iris.Iris;
|
||||
import com.volmit.iris.core.IrisSettings;
|
||||
import com.volmit.iris.util.decree.virtual.VirtualDecreeCommand;
|
||||
import com.volmit.iris.util.format.C;
|
||||
import com.volmit.iris.util.format.Form;
|
||||
import com.volmit.iris.util.math.M;
|
||||
@@ -333,4 +334,21 @@ public class VolmitSender implements CommandSender {
|
||||
public Spigot spigot() {
|
||||
return s.spigot();
|
||||
}
|
||||
|
||||
public void sendDecreeHelp(VirtualDecreeCommand v) {
|
||||
int m = v.getNodes().size();
|
||||
|
||||
if(v.getNodes().isNotEmpty())
|
||||
{
|
||||
for(VirtualDecreeCommand i : v.getNodes())
|
||||
{
|
||||
sendMessage(i.getPath() + " - " + i.getDescription());
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
sendMessage(C.RED + "There are no subcommands in this group! Contact support, this is a command design issue!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user