This commit is contained in:
serveur
2026-10-18 00:10:27 +02:00
parent 917b358119
commit 04962b174a
8407 changed files with 1284624 additions and 325 deletions
@@ -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;
}