Solved Is there a way to make My Commands trial and error?

Discussion in 'Plugin Help/Development/Requests' started by dragontamercos, Aug 6, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    dragontamercos

    I want to make a skyblock server, and im on one of my final problems...

    Im using this to make it so you generate a new skyblock world.

    Skyblock:
    command: /island-start
    type: RUN_COMMAND_TASK
    runcmd:
    - '/mv clone world_skyblock X'
    task_run_immediately: true
    task_run_n_times: 0
    permission-required: false

    X is intended to be, the number that came after the newest world. So, for example. The first world generated is going to be 1, the second world generated, using the code '/mv clone world_skyblock 1' will return an error, as 1 already exists. It should now generate 2.

    I want it go to check, is 1 occupied? yes continue. is 2 occupied? No, tp to world 2.

    The next problem is the person going to their island from HUB market. I also need to figure out how to make it do the "MV TP X" command as well as generate.

    Im sorry if im asking for too much.

    .
     
    Last edited: Aug 7, 2017
  2. Offline

    PenguinOwl

    As far as I know, essentials does not support substitution in the custom commands file. This would probably be made as a separate plugin. I could probably make this right now, but I need some info:
    1. Im guessing that the command "/mv clone world_skyblock X" would be run by console?
    2. Would the world be named something like "skyblock1"?
     
  3. Offline

    dragontamercos

    Im using MY COMMANDS not Essentials.
     
  4. Offline

    PenguinOwl

    Oh, sorry about that. It still looks like my commands only supports input from the player and can't run checks itself though.
     
  5. Offline

    dragontamercos

    So... How would you go about doing this?
     
  6. Offline

    PenguinOwl

    From easy to hard:
    1. Use tags in your commands e.g. /mv clone world_skyblock skyblock_$player or /mv clone world_skyblock skyblock_$uuid
    2. Use a Skyblock plugin and make aliases for the commands with My Commands
    3. Write your own plugin or ask someone else to write one
     
  7. Offline

    dragontamercos

    THANK YOU!
     
    PenguinOwl likes this.
  8. Offline

    PenguinOwl

    Which one did you use?
    Also, I'm pretty sure you can mark this as solved.
     
  9. Offline

    dragontamercos

    First one, I may do the last one in a couple months.
     
Thread Status:
Not open for further replies.

Share This Page