Plugin Name: GoldTrade Description: this plugin will enable players to trade gold for xp, by right clicking a block. the trade block can be enabled by typing a command, and then right clicking on the block you want to trade the gold to xp. the plugin will also have a config file where you can edit how much the min and max amount of xp given every time right clicking the block. (random) Commands: /settradeblock - sets the block that should be use to trade. Permissions: default = OP Config file: Code: # Set EXP options and which item should be used for trading Messages: not-sign: '&cThis is not a block' sign-set: '&aSign successfully set as a trade block' already-sign: '&cThis sign is already a trade block' insufficient-funds: '&9You do not have any &6Gold Ingots &9to trade' disabled: '&cGoldTrade is not enabled' set-prompt: '&aRight click a sign to set it as a trade block' min-xp: 300 max-xp: 1000 item-id: 266 Blocks: - CraftWorld{name=redstone}, -126.0, 34.0, -4.0 When I'd like it by: 1-2 weeks.
HyVe I don't fully understand. You put "right clicking a block" but your config makes it seems like you mean sign. Do you want the player to have to interact with any block you set or just signs?
JRL1004 oh, i am sry. this request was made because, i have a plugin like this, but it runs with signs. and i want to change it to blocks.
HyVe Well I'm bored and have time so I'll look into doing this for you (although the config may look different) I won't give an ETA but you can expect it does by later today or tomorrow. Sidenote: Don't mark this as filled since I may run into an issue, however unlikely, that I can't solve.
HyVe Okay, I've got a working version made. I'm going to sleep since it's 3am. I'll put a download on this thread tomorrow so you can butcher the poor plugin looking for bugs and anything else you want. Also: the numbers put in your config make it so 2 sales (on average) will put a player at lever 30 or higher. I recommend scaling that own a bit xD
HyVe Sorry, was offline. Yea I got it done. I'm doing some checks here and there to make sure it will work well. I'll put a like up first thing tomorrow so you can use it.
HyVe So I found a bug yesterday but I got it patched over. I would recommend changing the config since I did almost a direct copy-paste form the code so some parts look weird (like it saying click a sign when removing a trade block). Also post any bugs here since I don't really care for the conversation system. Here is your link: https://www.dropbox.com/s/d946y54ua0mm9pn/GoldTrade.jar