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

    tr0y

    Damn, more waiting :)
     
  3. Offline

    Codisimus

    @tr0y
    Finally updated, It's rather late so I'm sorry if there are any problems, please post them and I will fix them in the morning
     
  4. Offline

    thestriker095

    hey can u make it an OP only setup! i do not like the permissions plugin and i dont want default users creating warp or deleting warps!
    so if you could do this that would be awesome!
    Thanks!
     
  5. Offline

    Codisimus

    It defaults to using OP if permissions is not found, let me know of any errors
     
  6. Offline

    thestriker095

    well other people (not ops) can delete warps! and make them!
    oh and another bug is the /bw unlink command wont work!
     
  7. Offline

    Codisimus

    I fixed unlinking in the version I just uploaded
    And I'm fixing the OP now

    @thestriker095
    ok redownload the latest version and everything should work swimmingly

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

    tr0y

    Unlink works
     
  9. Offline

    tripletutorial

    I can't use it for 860 , it just says unkown console command!
     
  10. Offline

    DougRattmann

    I Love This!!
    I play with my freinds on a little server i host, and i have to say it has set a new standard for the way we play minecraft.
    I mean, It just won't be the same if we didn't have this plugin.
    SIMPLY AMAZING!!
    [diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond][diamond]
     
  11. Offline

    Kajinn

    Well, I installed your plugin and I have full rights on my server, but when I use both /bw and /buttonwarp, all I get is a post in chat of possible commands no confirmation of the command, and no actual functionality of the command.
     
  12. Offline

    thefoxeur

    I have the same probleme when I want to charge whit a negative value , no money add or soustract !

    Thefoxeur
     
  13. Offline

    embty

    Gave buttonwarp.use permission to a group but the still cant use the button " no permission to use"
     
  14. Offline

    Codisimus

    This is bc you have the buttonwarp.admin.freewarp node (or * or buttonwarp.* or buttonwarp.admin.*)
     
  15. Offline

    tr0y

    Do you happen to know why in certain locations I'm getting "Must link the warp to a button" even though I'm pointing to a button? I've tried looking at the button from different angles but no luck. In some places it just doesn't work :(
     
  16. Offline

    Codisimus

    did you try restarting the server and trying again?
     
  17. Offline

    embty

    Any idea why users are getting no permission to use when they have buttonwarp.admin.freewarp and the use node.
     
  18. Offline

    tr0y

    No o.0
     
  19. Offline

    thefoxeur

    Hello , It's Ok for the negative reward , thx , but I use your plugin to make a casino , when a player click on a button he is charged and if he has no money , the dispenser next the buttom , drop a item.

    It's possible to make , if a player has no money , the dispenser drop no item ?

    Tkanks you

    Thefoxeur
     
  20. Offline

    Codisimus

    I'll try to add this but the way I coded it makes this difficult

    UPDATE!
    added this feature

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

    tr0y

    Is this optional?
     
  22. Offline

    Cenarius

    GREAT !
    just what i needed ^_^

    btw .. i get this error :
    Code:
    11:19:36 [INFO] [ButtonWarp] Load failed, saving turned off to prevent loss of d
    ata
    11:19:36 [SEVERE] java.lang.ArrayIndexOutOfBoundsException: 11
    11:19:36 [SEVERE]       at ButtonWarp.SaveSystem.loadFromFile(SaveSystem.java:41
    )
    11:19:36 [SEVERE]       at ButtonWarp.ButtonWarp.onEnable(ButtonWarp.java:42)
    11:19:36 [SEVERE]       at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlug
    in.java:125)
    11:19:36 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(
    JavaPluginLoader.java:799)
    11:19:36 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.enablePlugin(Si
    mplePluginManager.java:253)
    11:19:36 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftSe
    rver.java:140)
    11:19:36 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftS
    erver.java:118)
    11:19:36 [SEVERE]       at net.minecraft.server.MinecraftServer.e(MinecraftServe
    r.java:232)
    11:19:36 [SEVERE]       at net.minecraft.server.MinecraftServer.a(MinecraftServe
    r.java:219)
    11:19:36 [SEVERE]       at net.minecraft.server.MinecraftServer.init(MinecraftSe
    rver.java:146)
    11:19:36 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:283)
    11:19:36 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:422)
    11:19:36 [INFO] ButtonWarp 0.9 is enabled!
    11:19:36 [INFO] [ButtonWarp] Successfully linked with Permissions!
    and this is my save :
    Code:
    trap2;;0;server;world;-677.3000000119209;70.1875;-305.69999998807907;-10.949966;25.669325;none;user;world,-676,74,-309,sliver,155'18'49'4,Cenarius,155'18'44'38,~;
    shop1;;0;server;world;700.65625;116.0;1121.46875;9.300056;-90.37018;none;user;world,702,121,1121,sliver,166'15'29'20,asd,160'21'57'38,Cenarius,157'11'48'14,~;
    shop2;;0;server;world;700.8298897630657;120.0;1121.6633964532182;8.849994;-92.16961;none;user;world,702,117,1121,sliver,161'11'46'51,asd,160'21'57'53,Cenarius,157'11'48'15,~;
    spawn;;0;server;world;-291.46875;64.0;214.59375;3.749984;174.83076;none;user;world,-139,65,929,asd,160'21'50'13,Cenarius,160'13'27'50,~;
    arein;;-100;server;world;577.53125;96.0;216.40625;8.100025;-91.66917;none;user;world,570,97,216,asd,161'11'35'29,sliver,161'11'45'8,Cenarius,161'11'59'58,~;
    areout;;0;server;world;569.53125;96.59375;216.59375;17.850012;89.83105;none;user;world,572,97,216,Cenarius,161'11'59'56,~world,576,97,216,asd,160'20'27'26,sliver,160'20'5'52,Cenarius,161'11'42'46,~;
    arena;;-1000;server;;;;;;user;world,574,96,217,Cenarius,161'11'57'49,~world,578,96,216,~;;
    spider1;;0;server;world;823.34375;81.0;277.78125;-13.800005;-4.345703;none;user;world,820,83,265,Cenarius,166'16'43'12,~;
    spider2;;0;server;world;827.4710645886014;78.0;248.30957875517362;-4.649948;-2.9958801;none;user;world,823,79,267,Cenarius,166'16'36'30,~world,823,82,278,~;
    spider3;;0;server;world;846.529268787623;78.0;248.40902328118275;22.350117;1.5033624;none;user;world,831,79,252,Cenarius,166'16'36'48,~;
    spider4;;0;server;world;862.5294443810568;78.0;269.8427308490409;18.150112;95.7033;none;user;world,845,79,255,Cenarius,166'16'36'53,~;
    spider5;;0;server;world;850.6875;78.0;271.71875;24.300123;90.45324;none;user;world,852,79,269,Cenarius,166'16'36'57,~;
    spider6;;0;server;world;837.6875;78.0;271.625;-0.5998777;84.30322;none;user;world,839,79,271,Cenarius,166'16'37'0,~;
    spider7;;0;server;world;820.4842097767645;80.0;265.61915455249147;13.049976;88.20227;none;user;world,825,79,274,Cenarius,166'16'3'11,~world,825,79,271,Cenarius,166'16'37'3,~;
    
     
  23. Offline

    Codisimus

    Is the feature optional or the update? I don't see why you wouldn't want this feature...
    @Cenarius
    I don't really see anything wrong with your save file... when you do /bw list wut is the last one listed?
     
  24. Offline

    Cenarius

    no, actually i can't codi ..
    it's not just the last one :*(
    the only once i see is :
    arein, areout, shop1,shop2,spawn and trap ..
    the rest does not show up ..
    note:i upgraded from 7.5 to 9 ...
    same error showed out when i tried to upgrade to previues versions to (before 9 but after 7.5)
    the only reason i want V9 for is the event cancel it's just great and needed badly xD
    yet .. i tried to delete the save file and it doesn't show any load error "i think because none saved"
    but i can't just delete it so i restored it ... do you think remaking all warps in new saves will fix the problem :eek: ?
     
  25. Offline

    Ratchet

    how do I disable "Deny taking items to a new World"?
    seems to be stopping everyone on my server from doing just that

    nevermind. it seems it's in the config but I had to generate a new config file to see it, and without the config option set it's defaulting to deny

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

    Ross Gosling

    Can you please make a no permissions versoin or make the original work without permissions as with out permissions i cannot charge people money D=
     
  27. Offline

    andyarbini

    says plugin is outdatted any help?

    k i fixed the update error but now it wont work with essentials :confused: any help

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

    Mattis_93

    if i asign a msg to a button it works fine until i restart the server then it dont show any :S
    RB 860
     
  29. Offline

    thefoxeur

    Hello , I have test the new feature and I have this error , and no economy action , no add and no charge players;

    Exception in threahd "Thread-958"
    java.lang.NullPointerException
    at buttonwarp.Warp$1.run(warp.java:79)

    Thx thefoxeur
     
  30. Offline

    Codisimus

    @Cenarius
    You can try deleting
    arena;;-1000;server;;;;;;user;world,574,96,217,Cenarius,161'11'57'49,~world,578,96,216,~;;
    and if that doesn't work try deleting
    areout;;0;server;world;569.53125;96.59375;216.59375;17.850012;89.83105;none;user;world,572,97,216,Cenarius,161'11'59'56,~world,576,97,216,asd,160'20'27'26,sliver,160'20'5'52,Cenarius,161'11'42'46,~;

    the isOP option doesn't work for you?

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

    Otoris

    Your mod isn't working via multiworld properly. I'm setting a /bw make Aurora in my "Aurora" world that is loaded and creating the ButtonWarp in the "Start" world that is loaded and linking it to the Aurora warp point. Instead of it teleporting me to the right location, it sends me several (sometimes tens sometimes hundreds) blocks off.

    Here is the lines in the save file
    Code:
    Aurora;;0;server;Aurora;-18.52722164021919;66.0;7.627842423874776;-19.950033;43.332504;none;user;;
    AuroraSpawn;;0;server;Aurora;-18.967526097536634;28.0;-13.219890456449052;-90.0;1.4834259;none;user;Aurora,-16,67,6,Otoris,167'23'13'7,~Start,-20,66,-15,Otoris,167'23'14'15,~;
    random;;0;server;Aurora;406.0;109.0;-192.40625;28.79999;132.89992;none;user;Start,-3,66,3,~;
    I instead get sent to - X=-19 Y=79 Z=-14

    This is the same for AuroraSpawn and Aurora, I tried placing them in to different positions.

    Hope this helps? I'm using XcraftGate for multiworld creating and partial teleportation.

    Thanks!
     

Share This Page