Inactive [TP] ButtonWarp v1.1 - Teleport using buttons with price/reward/custom messages [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 18, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page


    ButtonWarp (Previously DungeonReward) - Teleport using buttons with price/reward/custom messages:
    Version: 1.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    This plugin is used to reward a player with money for reaching a certain region of the world.
    Or you can use it as a simple teleport using buttons.
    Money is added/subtracted when the user presses the button, the user is then teleported to a set location.

    If you are interested in this plugin be sure to check out PhatLoots.

    Features:
    • Buttons can also teleport users without giving any reward.
    • Deny taking items to a new World
    • Custom messages
    • Option to not teleport on button press (only charge/display message)
    • Set a cooldown time
    • Rewards can be negative to charge users to warp.
    • Set different reward values for different dungeons.
    • List and locate teleport locations.
    • Send money to player/bank account
    • Take money from player/bank account
    • Uses iConomy, BOSEconomy or Essentials to give users money.
    • Permissions to limit players from using, getting rewards, and using commands.
    • Included in CraftBukkitUpToDate for easy updating (make sure you come check the changelog if somthing is not working right)
    Commands:
    Commands can be written as /buttonwarp or /bw
    Show Spoiler

    • /bw make [Name] - Makes Warp at current location
    • /bw make [Name] nowarp - Makes a Warp that doesn't teleport
    • /bw move [Name] - Moves Warp to current location
    • /bw link [Name] - Links target button with Warp
    • /bw unlink [Name] - Unlinks target button with Warp
    • /bw delete [Name] - Deletes Warp and unlinks buttons
    • /bw amount [Name] [Amount] - Sets amount for Warp
    • /bw source [Name] server - Generates/Destroys money
    • /bw source [Name] [Player] - Gives/Takes money from Player
    • /bw source [Name] bank [Bank] - Gives/Takes money from Bank
    • /bw msg [Name] [Msg] - Sets message recieved after using Warp
    • /bw time [Name] [0'0'0'0] - Sets cooldown time for using Warp
    • /bw type [Name] [Type] - Sets cooldown type for using Warp
    • /bw list - Lists all Warps
    • /bw locate [Name] - Gives location of Warp
    • /bw rl - Reloads ButtonWarp

    Permission Nodes:
    Show Spoiler

    • buttonwarp.use - Needed to be able to use the warp
    • buttonwarp.getreward - Needed to be able to receive money
    • buttonwarp.make
    • buttonwarp.amount
    • buttonwarp.source
    • buttonwarp.msg
    • buttonwarp.time
    • buttonwarp.type
    • buttonwarp.admin.move
    • buttonwarp.admin.list
    • buttonwarp.admin.locate
    • buttonwarp.admin.freewarp

    Tutorial:
    NOTE: New Tutorial video, please watch before asking a question.


    Changelog:
    Old Versions + ChangeLog can be found at Download Page
    Show Spoiler

    Version 1.1 (7/16/2011)
    • Fixed nowarp
    Version 1.0 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Fixed custom messages
    • Added rl command
    Version 0.9 (6/15/2011)
    • Added option of denying warp if trying to take items to a different world
    • Event is now cancelled if the warp event is cancelled
    Version 0.8 (6/12/2011)
    • Cleaned up code/fixed errors
    Version 0.7.5 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.7.4 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.7.3 (6/3/2011)
    • Added Essentials econ support
    Version 0.7.2 (5/20/2011)
    • Fixed ArrayIndexOutOfBounds '12' error
    Version 0.7.1 (5/16/2011)
    • Fixed creation of 'nowarp' warps
    Version 0.7 (5/15/2011)
    • Fixed location saving (no more looking straight up/down)
    • Actually fixed /bw make
    • Changed permission nodes
    • Added commands such as /bw source
    • Fixed all money issues
    Version 0.6.1 (5/4/2011)
    • Updated to iConomy 5
    • Few various fixes
    Version 0.6 (4/29/2011)
    • Fixed reload issues
    • Added custom messages
    • Fixed bank support
    • Added option to not teleport on button press (only charge)
    • Added cooldown
    • Renamed to ButtonWarp
    • Rewrote/Cleaned up code
    Version 0.5 (4/15/2011)
    • Improved Multiworld support
    • Many various fixes
    Version 0.4.1 (3/31/2011)
    • Few minor fixes
    • Works with build #612
    Version 0.3.3 (3/24/2011)
    • Fixed payment issues
    • Fixed Permission issues
    • changed dungeonreward.reward permission node to dungeonreward.amount
    Version 0.3.2 (3/22/2011)
    • Added confirmation messages (took out that you could set your own message)
    • Added a check to make sure the balance has enough money
    Version 0.3.1 (3/20/2011)
    • Fixed negative value adding money to account
    Version 0.3 (3/19/2011)
    • Fixed unknown command spamming chat
    • Fixed no Economy message spamming
    • Improved /reward list output
    • Added /reward msg (dungeonreward.msg) to set a custom message for when to press the button
    • Add option of negative value for paying to use warp
    Version 0.2 (3/19/2011)
    • Improved /reward make command (no more targeting, saves direction you are facing)
    • Added multiworld support
    Version 0.1 (3/18/2011)
    • Initial Release
     
  2. Offline

    morizuki

    ugh.. it's not that..

    I put a fee of $300 for everytime you warp using buttonwarp, but for some certain reason, it doesn't deduct your money when you warp..
     
  3. Offline

    Codisimus

    are you using essentials? bc for some reason ppl are having lots of trouble with that
     
  4. Offline

    morizuki

    nope.. using iConomy..
     
  5. Offline

    Codisimus

    are you using the new RB bc I didn't update to it yet
     
  6. Offline

    pepeanuts

    Hi the / bw -100 Amount not work
     
  7. Offline

    morizuki

    using 860.. :D
     
  8. Offline

    Dyramisty

    Hey man, I'm really looking forward to use this plugin, although it installed fine (created the files etc.) it doesn't read my permission nodes, I added the use nodes for everyone and the creation nodes for admins, though any command we try we get the "You do not have permission" message. It doesn't give any errors in the console and it loads fine. I'm using the latest bukkit version aswell for permissions.

    Edit: I'm using the latest of Groupmanager
    Edit 2: Works fine now after a couple of reloads, except, while running your plugin all of my /money & /bank commands won't work, however the iConomy system itself keeps running.
     
  9. Offline

    Hitman4Hire

    Could you add a feature that allows a button to teleport someone to their /sethome
     
  10. Offline

    Codisimus

    UPDATE!

    I added a reload command but I doubt it will help :(
     
  11. Offline

    Hitman4Hire

    Aww no essentials /home support?
     
  12. Offline

    Codisimus

    Essentials doesn't have a good API to work with :(
     
  13. Offline

    Dyramisty

    Updated to 1.0, though still no /money & /bank commands, any clue what this might be? No console errors either. It just tells me: Unknown console command: type "help" for help.

    And when I turn off buttonwarp the commands return.

    Thanks in advance.

    CB:935
     
  14. Offline

    Hitman4Hire

    Darn, well if you get around to it that would * GREATLY * appreciated.
     
  15. Offline

    Codisimus

    The only reason I was able to support essentials econ was thanks to coding done by Niji
     
  16. Why would anyone use Essentials Eco :)
     
    Codisimus likes this.
  17. Offline

    Zeeky

    Seems like it needs an update to work :3
     
  18. Offline

    Alesana

    I'm getting this error ... everything is up to date, i'm using Recommended Build: 953 (MC: 1.7.2)

    Code:
    2011-07-02 22:23:35 [SEVERE] Error occurred while enabling ButtonWarp v1.0 (Is it up to date?): tried to access field ButtonWarp.Warp.economy from class ButtonWarp.ButtonWarp
    java.lang.IllegalAccessError: tried to access field ButtonWarp.Warp.economy from class ButtonWarp.ButtonWarp
        at ButtonWarp.ButtonWarp.loadConfig(ButtonWarp.java:111)
        at ButtonWarp.ButtonWarp.onEnable(ButtonWarp.java:41)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Any idea?
     
  19. Offline

    dzekins

    time after time the warps get brocken and anyone that warp there with button got stuck into ground and dies.. why and how to fix it?
     
  20. Offline

    Codisimus

    are you using the latest bukkit build?
     
  21. Offline

    dzekins

    935
     
  22. Offline

    Ratchet

    hey @Codisimus
    my server has been having random lockups and a few times now my players have said that it has happened at the exact moment they pressed a button warp button, there's nothing in the log so I can't give any more info than that unfortunately, but maybe know that you know there's a problem if you looked you might find the cause?
     
  23. Offline

    p67738

    Codismus on my server won't work! Why not? [creeper] [lava]

    >:O It still doesn't work on my server >:O

    :mad: I'm mad now.

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

    Scusemua

    This is so amazing! It helped my server so much! It opened the door for so much more stuff I can do!

    Come join my server that has this mod:

    24.250.113.74:25565
    No Hamchi! On From 10,11,or 12 a.m to 10,11, or 12 p.m eastern standard time united states
     
  25. Offline

    MegaMan_Juno

    Hey everything sets up correctly but when i go to use it, i get a error,

    22:38:04 [SEVERE] Exception in thread "Thread-30"
    22:38:04 [SEVERE] java.lang.NullPointerException
    22:38:04 [SEVERE] at ButtonWarp.Warp.receive(Warp.java:318)
    22:38:04 [SEVERE] at ButtonWarp.Warp.access$200(Warp.java:19)
    22:38:04 [SEVERE] at ButtonWarp.Warp$1.run(Warp.java:110)

    I set it to a test warp at 5 but here is the error I get. any advice?

    I use essentials also and can not get it to work.

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

    rolandostar

    Your plugins are kind of runescape-minecraft mix, its great!
     
  27. Offline

    Insanehero

    Getting this error,

    19:47:07 [INFO] [ButtonWarp] Load failed, saving turned off to prevent loss of data
    19:47:07 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 11
    19:47:07 [SEVERE] at ButtonWarp.SaveSystem.loadFromFile(SaveSystem.java:41)
    19:47:07 [SEVERE] at ButtonWarp.ButtonWarp.onEnable(ButtonWarp.java:42)
    19:47:07 [SEVERE] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    19:47:07 [SEVERE] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    19:47:07 [SEVERE] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    19:47:07 [SEVERE] at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    19:47:07 [SEVERE] at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    19:47:07 [SEVERE] at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    19:47:07 [SEVERE] at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    19:47:07 [SEVERE] at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    19:47:07 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    19:47:07 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    19:47:07 [INFO] ButtonWarp 1.0 is enabled!
     
  28. Offline

    Ikkyino

    Every time I 'stop' the server and restart it.. My .save gets corrupted or something?
    I'm using build 953.

    Code:
    14:51:22 [INFO] [ButtonWarp] Load failed, saving turned off to prevent loss of data
    14:51:22 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 11
    14:51:22 [SEVERE]     at ButtonWarp.SaveSystem.loadFromFile(SaveSystem.java:41)
    14:51:22 [SEVERE]     at ButtonWarp.ButtonWarp.onEnable(ButtonWarp.java:42)
    14:51:22 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    14:51:22 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:857)
    14:51:22 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:264)
    14:51:22 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:151)
    14:51:22 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:136)
    14:51:22 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    14:51:22 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    14:51:22 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    14:51:22 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    14:51:22 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    14:51:22 [INFO] ButtonWarp 1.0 is enabled!
    14:51:22 [INFO] [ButtonWarp] Successfully linked with Permissions!
    14:51:22 [INFO] [ButtonWarp] Successfully linked with iConomy 5!
    
    
    This is my save.
    Code:
    FRAHFRAH;;0;ikkyino;world;-338.26678139369784;52.0;-285.77737595668316;7.949937;116.69653;none;user;world,-334,53,-285,ikkyino,187'14'47'34,~;
    testages;;0;server;world;-346.4490329126073;52.0;-288.15347120526025;10.649938;73.34654;none;user;;
    testages2;;0;server;;;;;;none;user;;
    
    When I do /bw list, it only shows FRAHFRAH:0, testages:0, I'll try and find out exactly what does this and try to replicate it's behavior each time.

    EDIT: Also when using /bw rl, it duplicates everything :/ (which might be causing the issue in the first place)

    EDIT2: Okay, I've narrowed it down to everytime I make a warp that doesn't warp you (nowarp), after reloading the server it throws out that error up top.
     
  29. Offline

    Codisimus

  30. Offline

    KINGOFYOU

    Hey im having problems getting the warping between worlds to work. I make it perfectly and it says you cant take items to another world. I have looked everywhere to try and fix this any ideas?
     
  31. Offline

    Codisimus

    there is a setting in the config to turn that off
     

Share This Page