Rpg Trade
MAJOR NEWS
I have decided that we are going to be merging all of the RPG style plugins into a single plugin, Servers that want to only use a few features from them will still be able to do so through our config files. The RpgAPI page we have will be the one the plugin gets released on. It is taking a bit longer than expected to get them all updated but we are trying to make them as configurable as possible so every server can use them exactly how they want to.
Rpg Trades
Major update V1.5
Rpg trades is a system that allows you to open a trade window between you and another player for safe trades.
Permissions
trade.invite
Features:
- trade between 2 players with a inventory based gui.
- both players must hit the "confirm" wool before a trade will go through
- if one player changes an item both players have to re-confirm so no last minute trade scams!
- multiple items can be traded at once!
- the trade system can also be used to give a player items, as long as both people confirm only one side needs items!
- set how long players have to accept a trade in config
- set how far away players can trade from in config
- set only local trades to false in config to allow trading across any distance or world!
Commands
/trade {playername} - invites a player to trade with you!
V1.5 /trade invite {playername} - invite term can be changed in config
/trade accept - accepts a pending trade invite
/trade deny - cancels a pending trade invite
Config File for V1.5
#whether players have to be within a certain distance to trade with one another onlyLocalTrades: true #if only local trades is true, this is how close a player has to be to trade TradeDistance: 10 #how many seconds before an impending trade invite is cancelled inviteTimeOut: 30 #words to display to players under different circumstances. #These are considered self explanatory so won't be elaborated upon #colors can be used with @# a.k.a. @2 = green #the first five are wrapped in '' so that the initial space will be placed in messages after a player name. Terms: Has Invited: ' Has Been Invited To Trade.' Is Invited: ' Has Invited You To Trade. please use @2trade accept @for @4trade deny.' Accepted: ' Accepted the trade.' Denied: ' Denied the Trade.' Too Far Away: ' is too far away!' Not In Trade: you are not in a trade! Error: Syntax Error use accept deny or invite! NoPerm: You do not have permission to trade! Missing Player: Cannot find player. Same World: This player must be on the same world as you! Complete: Trade Completed. Block Accept: Accept Block Deny: Deny Block Waiting: Waiting. Block Confirmed: Confirm #do not use colors in these, these are the commands players have to type in to use the trade features. Command Invite: invite Command Accept: accept Command Deny: deny
massive credit and thanks goes to RC2K7 for starting the work on this plugin and getting most of the hard stuff out of the way :)
My RPG Plugins
Rpg Click
Help fund my programming hobby :)
I'm always available to help with issues with this plugin. feel free to log onto my ts3 at voice.vartala.com or add soulofw0lf on skype (Make sure you include why you're adding me or i will likely ignore it.)
can you also provide text for the person who recieves an invite for what to type next? my players are confused the first time.
@poonjab1_0
http://cdn2.planetminecraft.com/files/resource_media/screenshot/1319/2013-05-08_131220_5412508.jpg
are there any pictures of this in action?
@Kartikitrak
i have it running on three different servers and have found 0 bugs with the new version, also haven't had any reported to me.
Can anyone else confirm there are no dupe bugs. I used the old outdated trade plugin which was EPIC but had many problems.
@The_Newbizzle
do you have V1.1? i was fairly certain that bug was fixed in 1.1?
errors occur when you type /trade
@XxthedarkkingxX
a standard permission node has been added into the code and will be implemented for the next update.
i want to be able to decide who can and can not trade via the permission nodes... ex: visitors cannot trade at all where as builder can only trade with builder and so on.. maybe even prevention of certain items being traded (but that may be asking too much) so it is more controllable... i think this is an amazing idea i just want to be able to set the permissions before i start using this because i don't want mods/admins trading things they shouldn't be. i know i can prevent groups from using items but i just don't want there to be any way for them to access those items
@The_Newbizzle
allright i'll go ahead and add a permission node in for inviting players to trades, though it'll probably wait to be posted until i have something else to update.
@diannafire
I was actually going to ask about permissions too.
@XxthedarkkingxX
i didn't associate any permissions with this one. i suppose if it's requested i could add permissions for starting trades?
where is the complete permissions list?
@simen90
all of your bugs are fixed, and the file is uploaded, just waitting on bukkit approval :) thanks for the catches!
@14manj01
make sure you have the right game version?
Error comes up 2013-05-09 08:21:43 [SEVERE] Could not load 'plugins\RpgTrades.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/vartala/soulofw0lf/rpgtrades/RpgTrades : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:307) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:231) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:263) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:241) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:95) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:388) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: com/vartala/soulofw0lf/rpgtrades/RpgTrades : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) 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.findClass0(PluginClassLoader.java:87) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
Just found a bug(s) :P
1) While in trade the other person can hold in Shift and click on an choosen item and it will come onto the Left side of the trade box (The person that ownes the right box).
2) so if its item on the Left side box the ¨Trader¨ that are going to use the left side can deny and get all the items that were in that box, the person can also take items away from the box thats on the leftside but the other person that ''Shifted'' the item(s) there cannot take them back.
(The Deny button also bugs/Dont work sometimes so most press Esc to Deny)
But seeing away from that this is an AWESOME Plugin! Keep up the good work :D Love the Rpg Plugins, perfect for servers :3 <3
and the trade file has been approved :) if you find any bugs please let me know!
one of my upcoming plugins is actually a right click on player menu that you will be able to add commands into to have it do what ever you like. but that's 4 or 5 down the road yet :)
perhaps adding a right click feature? To let 2 people right click each other and they begin trade? I like your other plugins cant wait for another :3