place block core eval function
This commit is contained in:
parent
f34ccfc5dd
commit
72219f3ce8
2 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
package land.chipmunk.chayapak.chomens_bot.evalFunctions;
|
||||
|
||||
import land.chipmunk.chayapak.chomens_bot.Bot;
|
||||
|
||||
public class CorePlaceBlockFunction extends EvalFunction {
|
||||
public CorePlaceBlockFunction (Bot bot) {
|
||||
super("corePlaceBlock", bot);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(Object... args) {
|
||||
final String command = (String) args[0];
|
||||
|
||||
bot.core.runPlaceBlock(command);
|
||||
}
|
||||
}
|
|
@ -8,6 +8,7 @@ import land.chipmunk.chayapak.chomens_bot.Bot;
|
|||
import land.chipmunk.chayapak.chomens_bot.data.EvalOutput;
|
||||
import land.chipmunk.chayapak.chomens_bot.evalFunctions.ChatFunction;
|
||||
import land.chipmunk.chayapak.chomens_bot.evalFunctions.CoreFunction;
|
||||
import land.chipmunk.chayapak.chomens_bot.evalFunctions.CorePlaceBlockFunction;
|
||||
import land.chipmunk.chayapak.chomens_bot.evalFunctions.EvalFunction;
|
||||
|
||||
import java.util.*;
|
||||
|
@ -30,6 +31,7 @@ public class EvalPlugin {
|
|||
|
||||
public EvalPlugin (Bot bot) {
|
||||
functions.add(new CoreFunction(bot));
|
||||
functions.add(new CorePlaceBlockFunction(bot));
|
||||
functions.add(new ChatFunction(bot));
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue