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

    Codisimus

    Note to all, I have fixed "/bw make" not working and will update as soon as I fix some other things. Sorry for the delay
     
  3. Offline

    CDJ445544

    hey, can these warps go between worlds? If so i am definitely usin this

    you can easily fix this by after /bw make (name), put a space and then random letters. I had the same prob

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

    NEO

    @Codisimus

    This is insane, button warp saving needs to be fixed. Ive linked the same buttons and made the same warps 5 times now, they never save after restart. There needs to be a save command or automatic saving, which isnt that hard to set up.

    Please please fix button warp saving
     
  5. Offline

    Devian50

    that actually works? cause I managed to get ONE button set up to warp War (exactly like that) but after that the same thing happens... Ill try that! thanks!
    the saving may be an issue on your part. are you shutting down properly? check your log. is the plugin shutting down correctly? with the 1 warp I had it saved just fine!

    @Codisimus I didn't notice your post before I edited! Awesome!

    btw your download page on the google sites is trying to use https instead of http and my browser (Chrome) is gettin mad... Just letting ya know!

    TYPO ALERT!!!
    buttonwaro.getreward - Needed to be able to receive money

    :p

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

    CDJ445544

    i know i cant belive it i was just randomly tryin stuff and it worked!!!!!!!!!!!!!!
     
  7. I've managed to get this working. Thanks for the tip, Codisimus.
    I have this working on my server. The procedure is as follows:
    /bw make <warpname> nowarp # will create a warp with no destination
    #go to where you want your warp destination to be
    /bw move <warpname> # will move warp to your current location
    #point your cursor at the button your want to link to the warp
    /bw link <warpname>
    /bw amount <warpname> <cost of warp> # will set the cost of warp

    NB!
    Money doesn't get deducted for me but I'm not sure if that's just me and my permissions or actually a bug.
     
  8. Offline

    Devian50

    lol well it works! its a pain so the crap I put at the end is BS! :p but yeah really odd bug... cant wait for update!
     
  9. Offline

    NEO

    @Codisimus

    Seems ive finally caught the culprit

    Code:
    2011-05-04 05:49:33 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 12
    2011-05-04 05:49:33 [SEVERE]     at ButtonWarp.SaveSystem.loadFromFile(SaveSystem.java:38)
    2011-05-04 05:49:33 [SEVERE]     at ButtonWarp.ButtonWarp.onEnable(ButtonWarp.java:45)
    2011-05-04 05:49:33 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-04 05:49:33 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-05-04 05:49:33 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-05-04 05:49:33 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-05-04 05:49:33 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-05-04 05:49:33 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-05-04 05:49:33 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-05-04 05:49:33 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-05-04 05:49:33 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-05-04 05:49:33 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-04 05:49:33 [INFO] ButtonWarp 0.6 is enabled!
    2011-05-04 05:49:33 [INFO] ButtonWarp Successfully linked with Permissions!
    2011-05-04 05:49:33 [INFO] ButtonWarp Successfully linked with iConomy!
    
    BW 0.6 CB 740

    This disables saving on enable and disable of BW
     
  10. Btw, offtopic but is seeing "This server is also sporting some funky dev build of Bukkit!" normal? My CraftBukkit is 740 and I'm still getting this. Haven't been able to google up anything about this.
     
  11. Offline

    oleg

    Code:
    16:13:35 [SEVERE] Could not pass event PLUGIN_ENABLE to ButtonWarp
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at ButtonWarp.PluginListener.onPluginEnable(PluginListener.java:31)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.j
    ava:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 13 more
    16:13:35 [SEVERE] Could not pass event PLUGIN_ENABLE to DungeonReward
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at DungeonReward.PluginListener.onPluginEnable(PluginListener.java:31)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.j
    ava:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 13 more
    16:13:35 [INFO] [Permissions] version [2.7.2] (Phoenix)  loaded
    16:13:35 [SEVERE] Could not pass event PLUGIN_ENABLE to ButtonWarp
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at ButtonWarp.PluginListener.onPluginEnable(PluginListener.java:31)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.j
    ava:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    16:13:35 [SEVERE] Could not pass event PLUGIN_ENABLE to DungeonReward
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at DungeonReward.PluginListener.onPluginEnable(PluginListener.java:31)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.j
    ava:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    :confused: I think something wrong here

    both ButtonWarp and DungeonReward got same problem

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

    CDJ445544

    HA LOL
     
  13. Offline

    Codisimus

    I believe this is normal.
    Will be updating to the new iConomy soon

    Yes they can! this is all I use this for, quick warp between worlds.

    Updated! Thanks for your patience

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

    NEO

    @Codisimus you never replied to my above post.

    Has saving been fixed and/or could we get an option to save warps after we make them? I have had to reset my warps to many times :(
     
  15. Offline

    beatcomet

    there is a problem , I can't create button warps, after using the command it displys the help menu.
    can't set the cost, after creating the warp and setting the money, nothing happens when I use the button

    here is the button's data from ButtonWarp.save

    test;;10;Server;world;232;71;28;4.6429796;-94.04443;none;user;world,234,72,36,beatcomet,125'8'25'19,~;
     
  16. Offline

    Codisimus

    post your save file
     
  17. Offline

    NEO

    @Codisimus

    Only the warp tq2 shows ingame with /bw list.

    Code:
    tq2;;0;Server;world;51;56;181;-89.824165;20.264498;none;user;world,-3,65,188,~;
    oq1;;0;Server;world;-54;60;385;9.449975;-269.9797;none;user;;
    oq2;;0;Server;world;-54;57;386;7.3499856;-270.57962;none;user;world,-57,60,384,~;
    oq3;;0;Server;world;-54;54;385;8.549976;-270.4296;none;user;world,-57,57,385,~;
    oq4;;0;Server;world;-54;51;385;8.849998;-269.97937;none;user;world,-57,54,386,~;
    oq5;;0;Server;world;-55;48;386;10.199901;-269.82928;none;user;world,-57,51,386,~;
    oq6;;0;Server;world;-54;45;385;9.299902;-270.12918;none;user;world,-57,48,388,~;
    oq7;;0;Server;world;-54;42;385;9.149982;-269.82898;none;user;world,-57,45,384,~;
    oq8;;0;Server;world;-54;39;386;7.349962;-269.97894;none;user;world,-57,42,384,~;
    oq9;;0;Server;world;-54;36;385;10.04995;-270.12878;none;user;world,-57,39,385,~;
    oq10;;0;Server;world;-54;33;386;10.04997;-270.12863;none;user;world,-57,36,386,~;
     
  18. Awesome, thanks.

    This is for the new iConomy, right?
    Cause on the old one I'm getting:

    Code:
    13:30:55 [SEVERE] Could not pass event PLUGIN_ENABLE to ButtonWarp
    java.lang.NoClassDefFoundError: com/iConomy/iConomy
            at ButtonWarp.PluginListener.onPluginEnable(PluginListener.java:31)
            at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:408)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:633)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 12, 2016
  19. Offline

    Codisimus

    Yes, I can't support both versions so if you don't want to update iconomy yet then don't update this
     
  20. I've been getting this after I've upgraded your plugin. Upgraded to i5 and started getting this from a lot of others. Luckily, I've made a backup. I'll have to evaluate my upgrade schedule. This also explains why my players are not being charged for using the buttons. :(
     
  21. Offline

    maxyboy

    cut you make yml files so autohelp can read it?​
     
  22. Offline

    Codisimus

    Wut is autohelp? I never looked into yml
     
  23. Offline

    denace

    Okay, i tried the new version. Typing "/bw make test" gives me still only the help page, so i use the nowarp command and move it. Sometimes i cant link a button to a warp and i get the message "You must link the warp to a button". I cant unlink a button. It says "Button unlinked successfull" but if i try to link it again it says "Button already linked".
    Whatever i try (change space between me and the button, delete warps and recreate it...) it doesnt work.
    Does someone else have these problems? And if not, what am i doing wrong?
     
  24. Offline

    Codisimus

    Try redownloading it, these should all be fixed
     
  25. Offline

    Jon1155

    Ive downloaded the new version (v2.0) but im still getting the same problem as denace. /bw make [name] doesnt work. and trying to link a button to a warp doesn't work most of the time, and also unlinking aswell. Please fix, your new version mustn't had. HELP!!! thx

    same

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

    Bruce Park

    Whenever i restart my server..all the portal list are gone however the save file still exists..im sick of recreating the portals everytime i restart my server please help thanks!
     
  27. Offline

    rmb938

    I am getting this to even with the newest version
     
  28. Offline

    AmounRah

    a work around for the error on creation, is to write /bw make [name] dfgg
    just a space then a few random chars. works well
    BUT
    When trying /bw unlink it says the button and been unlinked but it still works. Also, you can not change the link to another location because it says that the button is already linked.
    A little annoying that if you want to move a but of things around, you can't.
     
  29. Offline

    Jon1155

    can Codisimus just fix it please!!!!!!! thx
     
  30. Offline

    Codisimus

    This is bc your save file is corrupted.
    I am now done with school so I can work on fixing all my plugins. I must've rushed through it b4 and overlooked something.
     
  31. Offline

    Borito

    When is try to set an amount to an warp, it does not remove money from a players account. The Warp itself works fine, but without an amount.

    Also "/bw bank" dont work.

    I use IConomy 5.0 and BW 0.6.1 on Bukkit #740

    Can you help me?
     

Share This Page