jsp
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// priority: 10000
|
||||
// Java class loaders - must load first
|
||||
|
||||
const $FTBRanksAPI = Java.loadClass("dev.ftb.mods.ftbranks.api.FTBRanksAPI");
|
||||
const $NumberPermissionValue = Java.loadClass(
|
||||
"dev.ftb.mods.ftbranks.impl.permission.NumberPermissionValue"
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
// priority: 9999
|
||||
// Utility functions available globally
|
||||
|
||||
const error = (player, message) => {
|
||||
player.sendSystemMessage({ text: "\u26A0 " + message, color: "red" }, true);
|
||||
};
|
||||
const success = (player, message) => {
|
||||
player.sendSystemMessage({ text: "\u2714 " + message, color: "green" }, true);
|
||||
};
|
||||
const message = (player, message) => {
|
||||
player.sendSystemMessage({ text: message, color: "white" }, true);
|
||||
};
|
||||
function getRandomInt(min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||
}
|
||||
Reference in New Issue
Block a user