Spigot SimpleTrading 1.4

Enables simple and user friendly trading for your server

  1. matzefratze123 submitted a new resource:

    SimpleTrading - Enables simple and user friendly trading for your server

    Read more about this resource...
     
  2. Great plugin!

    Got a few recommendations/suggestions though:
    • Flip around the XP and Money indicators (having XP indicator above "change money value" buttons doesn't really make sense at the moment)
    • Add a config option to disable Money trading.
    • Maybe even an option to set the maximum amount of money that can be traded at once?
     
  3. @Its_VoV

    Seems like I messed up the order of the indicators, you're right. I'll definitely change that and implement the features you suggested :)

    #Edit: Added in the latest development build available on my ci server. I did not have the time to test it yet, but it should work.
    https://ci.xaniox.de/job/SimpleTrading/
     
    #3 matzefratze123, May 28, 2016
    Last edited: May 28, 2016
  4. Please do update to 1.10 :(
     
  5. SimpleTrading is compatible with 1.10 ;).
     
  6. Great!!! :D thank you :D
     
  7. I don't seem to be able to change the max-distance. I set it to 50000000 or 0, it still requires the players to be very close.
     
  8. I tried setting it to -1 and it still says "Your partner is too far away!"
     
  9. Any insight into why we cannot set an unlimited range?
     
  10. Hi!

    I'm getting an error in console. We're running git-Spigot-8a048fe-d8637df (MC: 1.9.4) (Implementing API version 1.9.4-R0.1-SNAPSHOT) and Vault 1.5.6-b49.

    There's no difference between 1.3 dated 26.05.2016 or build #28 dated 19.08.2016. I've also tried to change block id's in config.yml to block id's found on http://www.minecraftinfo.com/idlist.htm

    [22:05:41] [Server thread/ERROR]: Error occurred while enabling SimpleTrading v1.3 (Is it up to date?)
    java.lang.IllegalArgumentException: Config-String "" material/block-id is invalid
    at de.xaniox.simpletrading.config.TradeConfiguration$ItemStackData.fromConfigString(TradeConfiguration.java:221) ~[?:?]
    at de.xaniox.simpletrading.config.TradeConfiguration.loadByConfiguration(TradeConfiguration.java:93) ~[?:?]
    at de.xaniox.simpletrading.config.TradeConfiguration.<init>(TradeConfiguration.java:59) ~[?:?]
    at de.xaniox.simpletrading.SimpleTrading.onEnable(SimpleTrading.java:78) ~[?:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot.jar:git-Spigot-8a048fe-d8637df]
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.loadPlugin(CraftServer.java:362) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at org.bukkit.craftbukkit.v1_9_R2.CraftServer.enablePlugins(CraftServer.java:322) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at net.minecraft.server.v1_9_R2.MinecraftServer.t(MinecraftServer.java:416) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at net.minecraft.server.v1_9_R2.MinecraftServer.l(MinecraftServer.java:381) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at net.minecraft.server.v1_9_R2.MinecraftServer.a(MinecraftServer.java:336) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at net.minecraft.server.v1_9_R2.DedicatedServer.init(DedicatedServer.java:268) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:532) [spigot.jar:git-Spigot-8a048fe-d8637df]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72]

    ########################################
    ## -- SimpleTrading - Configuration ##
    ########################################
    #
    # This is the main configuration file of SimpleTrading
    #
    blocks:
    # Block to accept trade
    accept: '351:10'
    # Block to decline trade
    decline: '351:1'
    # Block to seperate inventories
    seperator: '166'
    # Block for money status
    money-status: '371'
    # Block for money add/remove buttons
    money-add-remove: '371'
    # Block for xp status
    xp-status: '384'
    # Block for xp add/remove buttons
    xp-add-remove: '384'
    inventory:
    # Specifies the inventory-gui name while trading
    # Note: Use @p as a placeholder for the playername
    name: 'Trading - @p'

    # These key-value sets define the amount of money a
    # player can add or remove in the trading inventory
    money-value-1: 50
    money-value-2: 100
    money-value-3: 500

    # Same thing with exp. Define the exp amount of each
    # button in the trading inventory
    exp-value-1: 5
    exp-value-2: 50
    exp-value-3: 100
    localization:
    # The language this plugin is using. Currently
    # an english, german, russian and french translation
    # is available
    #
    # Possible values:
    # en_US - English
    # de_DE - German
    # ru_RU - Russian (translated by nixbeast)
    # fr_FR - French (translated by MisterJeu)
    #
    # If you want to help with the translation of SimpleTrading
    # feel free to translate it into your own language.
    # To get started, use the file located under
    # /language/locale_en_US.yml as a template for your translation.
    # Your translated file should have the following
    # format: locale_<language-code>_<country-code>.yml
    locale: en_US
    global:
    # The maximum distance where players are able to initiate a trade
    # Set to -1 to disable max distance and world checking
    max-distance: 15
    # Specifies wether trading in creative mode is enabled or not
    creative-trading: true
    # Specifies the timeout for trading requests in seconds
    timeout: 60
    # Specifies wether to use xp trading or not
    use-xp-trading: true
    # Specifies wether to use money trading or not
    use-money-trading: false
    # Specifies wether to use the shift-right-click feature or not
    use-shift-trading: true
    # Defines the maximum amount of money that can be traded at once
    # Set to -1 to disable this feature
    max-money-trading: -1
    item-control:
    # The control mode the plugin is running
    # Available modes: blacklist, whitelist
    # Explanation:
    # blacklist: All items can be traded except the
    # items configured not to be.
    # whitelist: No items can be traded except the
    # items configured to be.
    control-mode: blacklist
    # A list of items that cannot be traded or can be traded
    # depending on your control-mode setting
    item-list:
    - ''
    # A list of lores (the description text of an item) marking
    # an item to be untradable or tradeable depending on your
    # control-mode setting
    item-lore:
    - '[Untradeable]'
    world-control:
    # Same as the control mode in the item-control section
    control-mode: blacklist

    # A list of worlds in which trading is allowed or disallowed
    # depending on your control mode setting
    world-list:
    - ''

    config-version: 6

    I hope you can manage to fix this as soon as possible. Thank you in advance!
     
  11. How can I submit a translation?
     
  12. Hi,

    Is it possible to turn off the crouch click? it clash with other plugin I use.
     
  13. Hmm, currently testing this on Spigot 1.10... 2 versions behind(Though I got the jar today), and users can pull items out of the trade... I tested as OP and as a non-OP, still get the same issue, please fix. There is also no errors in console.

    After doing a few tests to determine the issue, I noticed that all my GUI's were having this issue(from other plugins) and have since then came to the conclusion to report the issue to the author of the plugin which has caused this issue. Sorry for the false report.
     
    #13 starwarsfreak219, Oct 2, 2016
    Last edited: Oct 2, 2016
  14. Duplication glitch beware, when sending money it sends DOUBLE the amount.
     
  15. Sorry for my super late response, I currently don't really have the time to maintain my plugins on Spigot since I started studying at a university.

    The error indicates that the string being read from the configuration is empty. Please try resetting your configuration by deleting it (you should of course create a backup of your old one). If you require further assistance please send me a PM.

    You can share the translation file by sending a PM to me :)

    You should take a look at the latest development builds available, it includes an option to disable the shift-click feature ;)
    https://ci.xaniox.de/job/SimpleTrading/

    Please try reproducing the glitch using the latest development build available. If the glitch still persists please tell me what Spigot version and economy plugin you're using.
     
    • Like Like x 1
  16. I have tried to change the seperator to a multiple different objects... it doesn't work :(
     
  17. This plugins work on 1.11?
     
  18. I believe it does, the only way to really determine if it works is to test it. ;)
     
  19. I put the permission to people of my sv can trade with other. But they cant use and they have the permissions and tell that they havent.
     
    • Agree Agree x 1
  20. Awesome plugin!
    Can anybody add the additional text message about receiving or withdrawing money after closing trading GUI?
    For example, "You are received 500 $ during trading".