[TP] TemporaryWarp

Discussion in 'Archived: Plugin Requests' started by np98765, Jul 20, 2012.

  1. Offline

    np98765

    [TP] TemporaryWarp

    What I want
    A way for users to "visit" popular destinations. They can walk around the destination, and then once the timer is up, the user would be teleported back to their previous location (even if they logged out).

    Ideas for Commands
    /twarp <warp>: Warps to <warp>
    /twarp <warp> <player>: Warps <player> to <warp>
    /twarp setwarp <warp> <integer>: Sets <warp> to your location. When a user warps there, they will remain there for <integer> seconds
    /twarp list: Lists all the warps alphabetically
    /twarp return [warp]: Sets the return point for <warp> (If no [warp] argument, then that will be the default return). If a warp doesn't have a return point, then it will automatically return users to the default return.
    /twarp price <warp>: Sets the price for using the warp (Vault/iConomy is fine)

    Ideas for Permissions
    You may break these up, but for my needs, this is fine. :)

    TemporaryWarp.user: Allows access to /twarp <warp>
    TemporaryWarp.admin: Allows access to all commands

    Messages
    On warp: ChatColor.GREEN + "You have been warped to " + ChatColor.YELLOW + warpName + ChatColor.GREEN + "!"
    *If there is a price, please add for <price> (before the !), where <price> is YELLOW (but ! remains GREEN)

    It would be nice if there was a "warning message", where 10 seconds or so before the user is to be teleported back, they will be sent a message:

    ChatColor.YELLOW + "10 seconds " + ChatColor.GREEN + "remaining!"

    Public?
    If you wish, a Dev page can be created. I think it might be helpful to a few folks... Maybe a few others will like it.​
    Source
    I kindly ask that you PM me the source... This way, I can a) Check for security issues, b) Learn, and c) If you are unavailable and it breaks, I can update it in a timely manner (instead of recoding it entirely).​

    When I Want This By
    Preferably sometime before July 31st.
     
  2. Offline

    MrZoraman

    If nobody else steps up I'll give it a try. I'm pretty sure I can pull it off, but I'm still getting used to programming plugins, so it will probably take me a while.
     
    Omnitv likes this.
  3. Offline

    bikboii

    Eh, I think it's not worth doing, honestly.
     
  4. Offline

    Omnitv

    why?
     
  5. Offline

    Synaps3

    Its a good idea but I would drop the features around preventing them from interacting. Thats complicated and a bug minefield. Just rely on there being a good protection region instead.
     
  6. Offline

    np98765

    Because he's a troll. :3 Look at all his other posts.

    I can live with that. WorldGuard can do all of that. Thanks, I'll edit my post. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  7. Offline

    Omnitv

    Lol, For some reason np your plugin requests are quite intresting.
    I want too and support too.



    +cookies
     
    np98765 likes this.
  8. Offline

    bikboii

    I too want support too.
     
  9. Offline

    Omnitv

    Why the change of heart all of a sudden?
     
  10. Offline

    -_Husky_-

    It seems that you think everyone elses ideas are terrible, but then, when you make one, its fantastic, try be a little nicer. :)
     
    np98765 likes this.
  11. Offline

    MrZoraman

    So is anybody working on this plugin or shall I begin?
     
  12. Offline

    Omnitv

    Begin. :3
     
  13. Offline

    MrZoraman

    so I shall :) This next week of mine is going to have be a bit busy so this may not be ready as immediately as my other plugins are usually.
     
  14. Offline

    UltraFaceguy

    This is a great idea :D
     
  15. Offline

    MrZoraman

  16. Offline

    np98765

  17. Offline

    MrZoraman

    crap. I should probably fix that XD

    Edit: I guess I'll have to seek out a moderator. Also, here is the plugin right here...
    I uploaded a file. I don't know where it went though XD
    I had to change because external links aren't very good.
     

    Attached Files:

  18. Offline

    kezz101

    Why didn't you give this a go yourself NP? :p
     
  19. Offline

    np98765

    Lol, still learning the basics -- Not ready yet :p
     
  20. Offline

    kezz101

    I'll help you through it :) This is actually a pretty good thing to start off on! It contains config.yml stuff, player manipulations and even the Scheduler.
     
  21. Offline

    MrZoraman

    The only regret I have is the way the plugin makes sure people don't bypass the countdown by logging off or the server restarting. A hashmap worked well, until I realized its not easy to save and load a hashmap. The way it works now, it has a list of players put in the warp configuration, as a boolean. That's is because I got lazy and had to go to bed, and wanted to finish things up that night. I think I'll fix a few things today and tomorrow and perhaps the day after that.
     

Share This Page