This commit is contained in:
Daniel Mills
2020-10-22 17:57:01 -04:00
parent a4d72eefbc
commit bfe7cf0ed7
12 changed files with 332 additions and 23 deletions

View File

@@ -19,8 +19,8 @@ public abstract class MortarCommand implements ICommand
private String description;
/**
* Override this with a super constructor as most commands shouldn't change these
* parameters
* Override this with a super constructor as most commands shouldn't change
* these parameters
*
* @param node
* the node (primary node) i.e. volume
@@ -92,6 +92,21 @@ public abstract class MortarCommand implements ICommand
requiredPermissions.add(node);
}
public void rejectAny(MortarSender sender, String[] a)
{
if(a.length > 0)
{
String m = "";
for(String i : a)
{
m += i + " ";
}
sender.sendMessage("Unknown Parameters: " + m);
}
}
@Override
public String getNode()
{

View File

@@ -0,0 +1,6 @@
package com.volmit.iris.util;
public interface Supplier2<T, TT>
{
public void get(T t, TT tt);
}

View File

@@ -0,0 +1,6 @@
package com.volmit.iris.util;
public interface Supplier3<T, TT, TTT>
{
public void get(T t, TT tt, TTT ttt);
}