ButtonWarp
This plugin is no longer being updated, check back in a few months for more information!
Version 2.2.2
NOTE: This plugin requires you have Vault enabled on your server
This plugin is used to reward a player with money for reaching a certain region of the world.
When the Player presses a linked button or stands on a linked pressure plate they will teleport and receive money.
Warps can also be set to take money instead of give it (pay to warp)
This can also be used to charge players to press a button (to activate redstone)
Features:
- Supports all major Economies and Permission Plugins thanks to Vault
- You can customize what command this plugin uses by editing the plugin.yml (found inside the plugin jar file)
- MultiWorld support
- Configurable properties
- Easily edit Warps in game or from the save file
- Custom messages
- Displays time remaining until Player can use the Button of the Warp again
- Supports Buttons, Switches, Pressure plates, and Detector Rails
- Money can be given or taken when activating a Warp
- Commands can be executed when activating a Warp
- Different reward values can be set to different Warps
- Warps can be set to not teleport you anywhere but simply charge money to use a Button
- Option to deny warping if the Player is carrying items
- Optional Warp delay where Players must stand still
- Optional cool down including cool down type and cool down time
- List Warps and Warp info
- Link Warp to Player's Money or a Bank Account
- Reset individual Buttons, all Buttons linked to a Warp, or all Buttons linked to every Warp
Permission Nodes:
Commands:
Tutorials:
Setup:
- Make a Warp (stand where you want the Warp to take you to)
- /bw make test
- Link a button (or pressure plate)
- /bw link test (you must be targeting the button you wish to link)
- Add a reward (target a linked Chest or add the PhatLoots name like so "/bw reward test 100")
- /bw reward 100 (warper will get 100 currency)
- Add a message (the message will be displayed to the warper)
- /bw msg test Congrats! Here is 100 coins, You have been warped back to the Spawn.
- Set a cooldown time
- /bw time 1 6 45 30 (Player will not be rewarded more money until waiting 1 day, 6 hours, 45 minutes, and 30 seconds.)
Video:
Use Custom Command Instead of /bw
How to receive support
ThyCelestia handles most of the In-Game support for this plugin, so when he Joins your server, do not call him out as a fraud trying to gain Permissions, he is seriously there to help with the Plugin.
How to get him to Join your server: There is an template below, use it to tell us your In-Game name, Server IP and issues you are having, Please inform your staff that ThyCelestia may be joining within the next few days and do not ban him for trying to help.
Application: In-Game Name:
What time you are online(Include TimeZone):
Issue you are having with our Plugin:
-
View User Profile
-
Send Message
Posted Oct 28, 2011@Codisimus
actually now the stable build is 1.3.3, fixed it not saving too
-
View User Profile
-
Send Message
Posted Oct 28, 2011@Psithief
make sure you are using 1.3.2, that will fix the cannot use that again message. I'll check out the saving.
-
View User Profile
-
Send Message
Posted Oct 28, 2011@Codisimus
Thanks.
Defect 1: Duplicate warp in .save file causes strange 'cannot use that again' errors.
Defect 2: I am getting told "You do not have permission to do that" when trying to use a warp. This is only after the plugin loads from warps.save, it works fine when it loads from ButtonWarp.save. It seems to me that either you had private warps in the previous system but they never worked, or public warps from the previous system are not being converted into public warps with the new system. Which?
I seem to have the right permission node. [PermissionsEx] Debug mode enabled [INFO] User Psithief checked for "buttonwarp.use", "buttonwarp.*" found
AND
The save system isn't saving at all. When does it write to disk? I set a warp with access public and time 0 0 0 0 by the ingame commands but when I stopped and started the server the warp was as if I had never issued those commands, and I saw no changes to the warps.save file.
-
View User Profile
-
Send Message
Posted Oct 28, 2011ok should be stable now, I used loads of test data and none of them gave errors.
-
View User Profile
-
Send Message
Posted Oct 28, 2011@Psithief
first of all, it should be .split("\\.")
second of all, what was I thinking when decided to divide doubles with '.'? I guess that's what happens when you trying to program during class.
Thanks for bringing this to my attention and I will fix it right away
as for the error printing I'll look into it. Thanks again
-
View User Profile
-
Send Message
Posted Oct 28, 2011@Codisimus
Oops, I think this is more important.
How is the following code:
supposed to parse this data?
-
View User Profile
-
Send Message
Posted Oct 28, 2011When SaveSystem fails to load I get 'Errored Line: ' and then the entire contents of the file.
Could you please move the exception handler deeper into the loop?
(It's an ArrayIndexOutOfBoundsException)
-
View User Profile
-
Send Message
Posted Oct 27, 2011@KINGOFYOU
ok, version 1.3.0 is back up and should work fine
-
View User Profile
-
Send Message
Posted Oct 26, 2011I had to delete version 1.3.0 bc it wasn't stable enough. I will fix it and hopefully update tonight
-
View User Profile
-
Send Message
Posted Oct 26, 2011@KINGOFYOU
they are two separate files, buttonwarp.save is the old one and warps.dat is the new one
So your old file is still there but It won't load it if the new file is present
-
View User Profile
-
Send Message
Posted Oct 26, 2011@Codisimus
Sure thing will start testing the afternoon. Got school now so will do it properly when I get back. What exactly do you want me to do? Replace the new file with the old one?
-
View User Profile
-
Send Message
Posted Oct 26, 2011@KINGOFYOU
The latest dev build has the looking up issue fixed
-
View User Profile
-
Send Message
Posted Oct 26, 2011@KINGOFYOU
can you show me some of the errors you get when it loads? To get it to load the old file just move the new save file to another folder. I'll fix the looking up and the 'you cannot use that again' issue is because you need to set the reset time
-
View User Profile
-
Send Message
Posted Oct 26, 2011@Codisimus
Soz but there is something very wrong with this version. I have tried and whenever I use the warp it makes me looking up. I loved how you could set where the player looked that was almost the best thing. Also I cannot use a button twice. It says "You cannot use that again" and nothing happens.
Don't know if these things are meant to happen or not. Good luck on fixing them :P
-
View User Profile
-
Send Message
Posted Oct 26, 2011@Codisimus
Fantastic testing now. Can I use the warp locations from the older version as when I tried it came up with lots of errors. I will just clean boot it and redo them all. Gimme a sec to properly test :P
-
View User Profile
-
Send Message
Posted Oct 26, 2011@KINGOFYOU
go ahead and try the latest stable version (1.3.0) let me know if there is a load error.
-
View User Profile
-
Send Message
Posted Oct 26, 2011@Codisimus
Will I be able to save my warps or do I have to do them again :/. Hope they can be fixed :)
-
View User Profile
-
Send Message
Posted Oct 26, 2011@Codisimus
Hello, thanks for the tips. Here is it in plain text and I can't wait for that update.
city;;0;server;world;969.5032572187898;68.0;-506.4025685493775;0.29998016;-270.7459;none;user;world,960,91,-509,KINGOFYOU,297'9'57'8~;
defaultstart;;0;server;world;244.53125;8.0;-209.3125;6.000006;-179.70842;none;user;world,244,8,-208,KINGOFYOU,299'16'56'29,~;
maze;;0;server;world;270.3125;67.0;76.78125;4.79985;-355.34717;none;user;world,964,91,-508,KINGOFYOU,299'17'29'48,~;
evergreen;;0;server;world;248.4592953768713;64.0;46.78150501023115;-6.4501467;-0.29708862;none;user;world,964,91,-504,~;
lighthouse;;0;server;world;158.2909150663499;63.0;38.4427388783847;-7.350018;-269.54706;none;user;;
castle;;0;server;world;288.118962903663;62.5;-21.390412475108956;-9.150016;-90.29706;none;user;world,964,91,-505,~;
tree;;0;server;world;333.375;67.0;-62.875;1.9499846;-179.69707;none;user;world,961,91,-509,~;
bank;;0;server;world;222.62278308527;65.0;-103.68417054877867;3.149973;-268.79678;none;user;world,964,91,-509,KINGOFYOU,299'17'48'13,~;
build;;0;server;world;248.59472724274912;64.0;-374.0108361810994;1.4999565;-200.09705;none;user;world,964,91,-507,~;
dwarf;;0;server;world;-221.34375;72.0;-6.625;-27.000153;-270.44757;none;user;world,961,91,-504,~;
enigma;;0;server;world;958.5;68.0;-505.53125;-4.50005;-269.3961;none;user;world,964,91,-506,~;
staff;;0;server;world;784.4669761797509;70.0;-337.30000001192093;-3.0000503;-0.14615065;none;user;world,959,91,-509,~;
cemetery;;0;server;world;611.3125;64.0;-466.46875;-0.8999933;0.30380723;none;user;;
parliament;;0;server;world;580.6875;64.0;-473.8125;-21.000004;-179.3963;none;user;;
chapel;;0;server;world;769.4375;64.0;-526.40625;-26.84998;89.40334;none;user;;
vipland;;0;server;world;575.4486546090274;64.0;-641.8441143129609;4.350006;83.10352;none;user;;
park;;0;server;world;660.2892682629989;64.0;-652.374883510628;-0.7500045;-89.996315;none;user;;
fishing;;0;server;world;940.0214432918398;64.0;-682.3245332868682;-2.0999937;265.80353;none;user;;
statue;;0;server;world;129.52335248847135;39.0;-184.48288362333352;0.15000857;-273.44662;none;user;;
-
View User Profile
-
Send Message
Posted Oct 26, 2011@KINGOFYOU
can you change the markup to plain text? WikiCreole doesn't show the data file right.
anyway I am just adding some comments for the ButtonWarp source and then I will release an update. This update handles data much better and these issues won't occur.
Bukkit is in Java in case you didn't know (which is nothing like Javascript) I learned it in college and then just started these projects for fun. Once you know the language I think it is easy to code plugins with a little help (the Bukkit community is great for that). I'd love to chat more about programming plugins and such but this week is a little hectic.
-
View User Profile
-
Send Message
Posted Oct 26, 2011@Codisimus
OMG LOL I got the error again. Here is what the text looked like. Says error in the lighthouse line!
city;;0;server;world;969.5032572187898;68.0;-506.4025685493775;0.29998016;-270.7459;none;user;world,960,91,-509,KINGOFYOU,297'9'57'8; defaultstart;;0;server;world;244.53125;8.0;-209.3125;6.000006;-179.70842;none;user;world,244,8,-208,KINGOFYOU,299'16'56'29,; maze;;0;server;world;270.3125;67.0;76.78125;4.79985;-355.34717;none;user;world,964,91,-508,KINGOFYOU,299'17'29'48,; evergreen;;0;server;world;248.4592953768713;64.0;46.78150501023115;-6.4501467;-0.29708862;none;user;world,964,91,-504,; lighthouse;;0;server;world;158.2909150663499;63.0;38.4427388783847;-7.350018;-269.54706;none;user;; castle;;0;server;world;288.118962903663;62.5;-21.390412475108956;-9.150016;-90.29706;none;user;world,964,91,-505,; tree;;0;server;world;333.375;67.0;-62.875;1.9499846;-179.69707;none;user;world,961,91,-509,; bank;;0;server;world;222.62278308527;65.0;-103.68417054877867;3.149973;-268.79678;none;user;world,964,91,-509,KINGOFYOU,299'17'48'13,; build;;0;server;world;248.59472724274912;64.0;-374.0108361810994;1.4999565;-200.09705;none;user;world,964,91,-507,; dwarf;;0;server;world;-221.34375;72.0;-6.625;-27.000153;-270.44757;none;user;world,961,91,-504,; enigma;;0;server;world;958.5;68.0;-505.53125;-4.50005;-269.3961;none;user;world,964,91,-506,; staff;;0;server;world;784.4669761797509;70.0;-337.30000001192093;-3.0000503;-0.14615065;none;user;world,959,91,-509,; cemetery;;0;server;world;611.3125;64.0;-466.46875;-0.8999933;0.30380723;none;user;; parliament;;0;server;world;580.6875;64.0;-473.8125;-21.000004;-179.3963;none;user;; chapel;;0;server;world;769.4375;64.0;-526.40625;-26.84998;89.40334;none;user;; vipland;;0;server;world;575.4486546090274;64.0;-641.8441143129609;4.350006;83.10352;none;user;; park;;0;server;world;660.2892682629989;64.0;-652.374883510628;-0.7500045;-89.996315;none;user;; fishing;;0;server;world;940.0214432918398;64.0;-682.3245332868682;-2.0999937;265.80353;none;user;; statue;;0;server;world;129.52335248847135;39.0;-184.48288362333352;0.15000857;-273.44662;none;user;;