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.)
@nashoxx
doesn't help without an error message of some type? also information about what version of bukkit your server is running?
@1airwolf
are you getting any errors in console? also for right now until the api version is released the initiating player has the left side of the window the player being traded has the right side, and there is an error that prevents people from trading cobblestone
okay i get the trade window open but cant put any thing in it from ether person help please
This plugin crashed my server :/
@Shad0wSpl1c3r
yup that'll be in the api version
Very nice plugin! Quick question though.
Is it possible to add another permission to this plugin that allows people to trade over any distance (ignoring whatever is set in config)? We have arcane classes that would benefit from this, while still not allowing other users to distance trade.
@nashoxx
vault support is already added into the api version of it and we'll be making a pull request tp vault soon to add our economy system into vault code.
Could you add vault support for this? Maybe if you add like gold, as the item that represents the money of vault, to trade with players.
@n33dy1
it might? i don't use any nms coding but don't know for sure. and this one has nothing to do with health which is the main thing that broke plugins.
Does the 1.6 version work on 1.5.2 too?
and to clarify the 1.6 upload is already there, just waitting for approval from bukkit.
@vaxjo
while we are adding in full economy support and a confirmation window for the version of trades going into the api i don't think we will be adding in the ability to trade levels. for one i don't see that being a very useful feature for alot of servers and for 2 it would take up more room in a gui window that's already getting too cramped.
@semirotta
yeah sem, it just wasn't out yet at the time i posted that comment
@diannafire
but there is bukkit 1.6 been out for a while already :D
Hi, Could you please add trading levels? For example, by clicking on the green wool adds one level and click on the purple remove one level. Would be very helpful :)
@semirotta
can't make it 1.6 compatible without bukkit
any time soon coming update for 1.6.* compatible?
@FuSe18
that means that you are using java 6 or below on your server the plugin was written using java 7 you will need to update in order to use the plugin, sorry for the inconvenience.
8:20:57 PM CONSOLE: com/vartala/soulofw0lf/rpgtrades/RpgTrades : Unsupported major.minor version 51.0 8:20:57 PM CONSOLE: java.lang.UnsupportedClassVersionError: com/vartala/soulofw0lf/rpgtrades/RpgTrades : Unsupported major.minor version 51.0
@pupnewfster
That is exceedingly less complicated than how i was coding it into the api so thank you very very much as a thanks here's a version with that added in being uploaded right now. (no other changes since all other changes have been made in the api not to this individual one)
@diannafire
HashMap<Integer, ItemStack> noFit = inventory.addItem(itemstack); the itemstack being the items you are adding noFit will contain all the items that did not get stacked into the inventory so that solves the checking if things can stack because it automatically does for(ItemStack stack : noFit.values()) { Bukkit.getWorld(p.getWorld()).dropItem(p.getLocation(), stack);where p is the player object of player receiving items }
This is 3 lines so yes i guess this is technically more than a couple of lines of code since couple means 2 but not really anything dificult
@pupnewfster
it's a lot more complicated than a couple lines of code since you have to compare items types to see if the recieved items can stack and then place them among stacks and drop the remainder and stuff, the progress on the api is coming along really well and shouldn't be "too" much longer before a beta is released with this functionality. These plugins as standalone are pretty much discontinued at this point and will all have much better functionality in the rpg api, as well as much less lagg (and in the config files you will be able to turn off every single feature you don't want to use and they won't even load on your server so will not take up any server resources at all for people that just want one or two of the plugins)