Minecraft – Is it possible to create Warp Signs that can only be used every hour in Minecraft Essentials

minecraft-java-editionminecraft-java-edition-serverminecraft-mods

I am trying to create a "dungeon," in Minecraft, but I do not want players to be able to continuously do it. I want there to be a gap of one hour before they can use the sign again. By this, I mean a Warp sign.

The idea is that the player presses the warp sign, but cannot press it again for another hour (Or any amount of time).

I have seen this before on others servers and would like to know what plugin it is. Is these essentials' warp signs?

If they are, (or not) how do I create what I am talkin about?

Best Answer

Alternatively, you can use the CommandSigns plugin to achieve this.

This assumes that the dungeon can be reached with /warp Dungeon and standard players have no access to it via the commands; only signs.

Firstly, the ~ identifier allows you to place a limit on the sign, and the ^ identifier executes the command under the player's name, but with the '*' permission node.
Note that this does not give them full command permissions, only just for the sign's execution; command stated in the sign.

You can visit the BukkitDev Wiki page for more information.


Here's how you set it up.

  1. Place a sign, you can color it, make it fancy - Do whatever you want.
    Just ensure it doesn't follow Essential's sign formatting.
  2. Enter the following command in the chat: /cmds add ~3600
    This defines a sign, with a execution cooldown of 3,600 seconds (or 60 minutes).
    Except, your sign does nothing.
  3. Right click (or punch) your sign that you want this to be applied to.
  4. Enter the following command: /cmds edit and punch the sign that you created in Step 2.
  5. Enter the following command: /cmds insert 2 /^warp Dungeon.
  6. Punch/right-click the sign.
  7. You're done.