On join server tour

Discussion in 'Archived: Plugin Requests' started by CaptainWalrus, May 15, 2013.

  1. Offline

    CaptainWalrus

    Idea: When a player joins the server for the first time they will spawn with a stick called the "tutorial stick" and you cannot move. When you right click the stick you're moved to a defined place the the owner has set. You must go to all the places taking the "tour" before you can move around at all.

    Commands:
    /st set [name] [tournumber] (This will set a tour place, and the number it will take place in when you click the stick on join)
    Example:



    /st set Shop 1 (This will teleport them to my "shop" where I was set it and it will be the first teleport.)
    /st del [name] (Deletes a tour place)
    /st done (Stops and stores all the defined places, and is ready to use!)

    Config:

    Tour time: 5 (Time before they can move to the next tour area, in this case, 5 seconds.)

    Permissions:
    st.set (Allows setting of a tour place)
    st.del (Allows removing of a tour place)
    st.done (Allows access to /st done)
     
  2. Offline

    Zarius

    OtherDrops can... wait, no it can't :) Looks like a good idea though.

    There's a tour plugin here: http://dev.bukkit.org/server-mods/tourguide/ but doesn't seem to allow forcing new players to take it. Perhaps worth adding a feature request there?
     
    Williscool98 likes this.
  3. Offline

    Compressions

    Zarius OtherDrops can do everything.
     
    Zarius likes this.
  4. Offline

    Rockon999

    Zarius I'm beginning to think you should change it to OmniaPlugin (EveryThing Plugin) or OtherEVERYTHING :p
     
  5. Offline

    CaptainWalrus

  6. Offline

    Ultimate_n00b

    If OtherDrops doesn't fit your needs, I'll do it.
    Are they allowed to look around?
     
  7. Offline

    CaptainWalrus

    Yes, they can look around! :D
     
  8. Offline

    Ultimate_n00b

    Okay. Do you want a radius of what they can move? Like, they can move 3 blocks, but thats it.
     
  9. Offline

    CaptainWalrus

    um, no. Just in the defined spot
     
  10. Offline

    Ultimate_n00b

    Sure, give me like, till tomorrow. I may finish it tonight though.
     
  11. Offline

    CaptainWalrus

    :D Thanks!
     
  12. Offline

    Ultimate_n00b

    Also, can I do it like:
    /set set <#> <message>?
     
  13. Offline

    Zarius

    Ultimate_n00b - please note I mentioned that OtherDrops "can't" do this particular request :D Glad you're helping out :)
     
  14. Offline

    Ultimate_n00b

    So I thought, until I saw this:


    Btw, just a update status. Almost done setting up the stick and a few more before the tour starts stuff.
     
  15. Offline

    Compressions

    Ultimate_n00b You lack logic. One does not think that something can do everything.
     
  16. Offline

    Ultimate_n00b

    >_>
    It was just a joke...
     
  17. Offline

    Compressions

    Ultimate_n00b likes this.
  18. Offline

    JoTyler

    Ultimate_n00b when you finish can you release the source so we can all learn from it ??
     
  19. Offline

    Ultimate_n00b

    I will, as all my plugins I release on this forum are open-sourced.
    But, its not that hard of a plugin, just takes a little while to write.
     
  20. Offline

    JoTyler

    Ultimate_n00b oh ok thanks in really only looking for how your going to set the name of the stick to something else :p and how your going to not allow the player to move
     
  21. Offline

    Ultimate_n00b

    1)
    Code:java
    1.  
    2.  
    3. ItemMeta sMeta = stick.getItemMeta();
    4. sMeta.setDisplayName(t("&6&lTutorial Stick"));
    5. stick.setItemMeta(sMeta);
    6.  

    2)
    Not typed up yet, so here is some pseudo code:
    PlayerMoveEvent
    if(event.getFrom.distance(event.getTo) > 1)
    event.setCanceled(true);

    Okay, I'm done, but I am too tired to do anything else more.. I'll make sure to give it to you tomorrow.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  22. Offline

    CaptainWalrus

    :D Thanks so much!
     
  23. Offline

    JoTyler

  24. Offline

    Ultimate_n00b

    I wanted to add an enchantment glow, but it would break every update :(

    <Edit by Moderator: Redacted mediafire url>

    Command: /st set <#> <message>

    If you set the message to None (caps do not matter), the message will not show up.

    The last position, he is removed from the guest list. Just a fyi, when they join, they can move. Once they click the stick the first time, the tutorial starts. Also, I did a few things to remove bypassing, basically just saving what step they are on in the config. Right clicking the stick goes back.

    Permission: servertour.admin
    Allows setting the spots.

    Sorry I didn't add delete, but that would've taken a while longer, and I wanted to get this to you.
     
    Last edited by a moderator: Nov 6, 2016
  25. Offline

    CaptainWalrus

    [quote uid=90707285 name="Ultimate_n00b" post=1675925]I wanted to add an enchantment glow, but it would break every update :(

    <Edit by Moderator: Redacted mediafire url>

    Command: /st set <#> <message>

    If you set the message to None (caps do not matter), the message will not show up.

    The last position, he is removed from the guest list. Just a fyi, when they join, they can move. Once they click the stick the first time, the tutorial starts. Also, I did a few things to remove bypassing, basically just saving what step they are on in the config. Right clicking the stick goes back.

    Permission: servertour.admin
    Allows setting the spots.

    Sorry I didn't add delete, but that would've taken a while longer, and I wanted to get this to you.[/quote]
    OMG! Thanks! Thanks so much!
     
    Last edited by a moderator: Nov 6, 2016
  26. Offline

    UltiFix

    [quote uid=90707285 name="Ultimate_n00b" post=1675925]I wanted to add an enchantment glow, but it would break every update :(

    <Edit by Moderator: Redacted mediafire url>

    Command: /st set <#> <message>

    If you set the message to None (caps do not matter), the message will not show up.

    The last position, he is removed from the guest list. Just a fyi, when they join, they can move. Once they click the stick the first time, the tutorial starts. Also, I did a few things to remove bypassing, basically just saving what step they are on in the config. Right clicking the stick goes back.

    Permission: servertour.admin
    Allows setting the spots.

    Sorry I didn't add delete, but that would've taken a while longer, and I wanted to get this to you.[/quote]
    When are you going to put this on your plugins page?
     
    Last edited by a moderator: Nov 6, 2016
  27. Offline

    Ultimate_n00b

    Did I say I was?
    I suppose I could.
     
  28. Offline

    UltiFix

    O... Lol I thought you were going to put it there :) If you dont will you still update this plugin?
    EDIT: I thought so because you said you were going to release the source code.
     
  29. Offline

    Ultimate_n00b

    Heh, sure I'll do it. And yeah, forgot to put it on github.
     
  30. Offline

    UltiFix

    Thanks! Post the link here when its on your plugin page....
     

Share This Page