So I’m hosting a server for me and my friends, [MC: 1.20.1 - Forge: 47.4.10]
For context: I gave everyone op2 permissions so they could use Xaero’s map /tp functionality, but this started to be abused and everyone agreed on nerfing it. While discussing on some forums I got the idea of creating a cooldown system for the /tp command and adding an XP cost for further distances. Or emergency cases (during cooldown)
I tried using FTBEssentials and FTBRanks, But the commands provided by Essentials didn’t allow for /tp <destination> with the cooldown functionality.
I’m currently looking into KubeJS as an option, but I’d like to know if there are better options to achieve this.
TLDR: I want to allow players in my server to use the /tp functionality with some restrictions (Cooldown, XP Cost based on distance threshold or use during cooldown)
PD. I also need help with enforcing having a compass on the hotbar/inventory for access to the map. Xaero’s mod page describes as adding: <minimapItemIdcompass> adding in the config files, but I tried all the default and common files, but haven’t had any effect.
Thanks for your help.
Solution
xaeros has an extremely limited server config enforcement system, which only allows the server to configure 4 options I believe?
Instead of giving people op lvl 2, I'd probably recommend using luckperms to only allow permissions to teleport