Skip to content

Commit

Permalink
an function
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Ye committed Jan 23, 2021
1 parent 318a5dc commit 48467e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/java/me/koneko/blossom/function/BlossomFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,23 @@ public interface BlossomFunction{
return null;
};

BlossomFunction MSG = args -> {
Bukkit.getPlayer((String) args[0].get()).sendMessage((String) args[1].get());
return null;
};

HashMap<String, BlossomFunction> functions = new HashMap<String, BlossomFunction>(){{
put("sin", SIN);
put("cos", COS);
put("tan", TAN);

put("log", LOG);

put("cmd", CMD);
put("cmdop", CMDOP);
put("cmdcon", CMDCON);

put("msg", MSG);
}};

}

0 comments on commit 48467e8

Please sign in to comment.