ATMsigns
Many servers like to use a kind of item based economy, where Gold Ingots or Emeralds can be converted into currency on a 1 Ingot:1 Dollar basis or similar. The problem we've had is that depositing and withdrawing can be cumbersome and confusing, since the only way to do it at the moment is to set up [Buy] and [Sell] signs (from Essentials), which people can easily get confused.
This plugin provides one interactive sign that can be used to deposit of withdraw a specified item in return for a credit of a specified quantity of currency.
For example, you could set the config to allow:
1 Gold = $1
1 Diamond = $100
1 Emerald = $1000
The plugin also supports up to 2 alternative item currencies, so your users can deposit (for example):
- 1 Iron for 1 Dollar OR
- 1 Gold for 10 Dollars OR
- 1 Diamond for 100 Dollars
(Or whatever you configure it to)
Withdrawals will always give the first (main) item.
Signs are owned by their creator (or other player specified on line 4)
You can also set a deposit / withdraw fee to be charged to players using ATM signs. The fee can either be paid to the sign's owner or simply deducted from the ATM user. Fees can be either a fixed amount or a percentage (depending on config). Fees are fixed at one rate/percentage for all ATMs.
As of v1.3
Thanks to popular demand, you can now set a name for your items other than the default Bukkit name, so for example you can call a "GOLD INGOT" "Gold" and a "GOLD NUGGET" "Nugget", in fact you can call it whatever you like!
As of v1.5
Now all the new types of wood can be used for ATM Signs, and the config is now based on the item name rather than the old ID numbers. The item name is not case sensitive.
Features
- ONE ATM sign for deposits and withdrawls
- Left-click the sign to pick your option
- Right-Click the sign to interact
- No database, no commands, very simple and lightweight plugin
- Configure what item can be converted to currency
- Allow deposits of up to 3 different item types
- Configure how much each item is worth in currency
- Charge a fee for using an ATM sign
- Permissions for creating/destroying/using ATM signs
Permissions
atmsigns.* : Can use, create and destroy ATM signs
atmsigns.use : Can use ATM signs
atmsigns.create : Can create ATM signs (and break own ATMsigns)
atmsigns.break : Can destroy anybody's ATM signs
Creation
- Place a sign
- Put [atm] in the first line
- (optional) Put the owners name in line 4
- That's it!
Usage
- Scroll through menu options by left clicking sign
- Right Click to activate option
- When withdrawing, Right Click = Withdraw 1, Crouch + Right Click = Withdraw 10
Commands
There are no commands!
Requirements
- An economy plugin
Installation
Place the jar in your /plugins folder and reload!
Configuration
Set your chosen item(s), currency value(s) and fee settings in the (newly created) /plugin/ATMsigns/config.yml
Default setting is:
item: "emerald"
currency: 1 (1 emerald = $1)
alt_item1: "none" (Disabled)
alt_item1_curr: 0 (No value)
alt_item2: "none" (Disabled)
alt_item2_curr: 0 (No value)
deposit_fee: 0.00 (How much to charge for deposits)
withdraw_fee: 0.00 (How much to charge for withdrawals)
percentag_fee: false (Set to true to charge a percentage rather than flat fee)
fee_to_owner: true (Sign owner receives the fees)
Server/Pack Usage
Sure, feel free to use it where you like!
Donations
To show your support and help me justify to my wife why I spend so much time on Minecraft, please donate using the Donate button in the top right corner of this page, or support Ellitopia on patreon at http://patreon.com/ellitopia
Thank you
Other Projects
Click Here to take a look at the other plugins I am proud to take responsibility for
I have recompiled this plugin. I have only changed colors and translated it to French It work in-game but when i want switch > Balance to > Deposit it dosen"t work
Thank you kindly.
v1.3.3 uploaded awaiting approval
@mrcheesete0
please submit a ticket and attach your config.yml file. Also please confirm you are not receiving any console errors for this bug.I can't see any obvious fault in the code but I will take a proper look once I've had a look at your config.Scratch that... I think I found the problem. Fixing now... 1.3.3 on it's way
Vault v1.2.13-b148
ATMSigns v1.3.2
EssentialsEco v2.9.1
CB 1.2.4-R1.0 b2126
It doesn’t pay the owner the fee when fee_to_owner is set to true.
This is tested and working fine in Ellitopia using the 1.2.4 recommended build.
Why not drop in to ellitopia.net to see it in action? :)
@PsPmax55
How about CB1.2.4-R1.0?
@ellbristow
So by "standard" economy setting, you mean mysql? And if I did switch that, how would iConomy recognize gold as a form of currency?
@PsPmax55
You must be using iconomy's item based currency. This doesn't work with the item mode in iconomy as that system deposits any gold that is added to your 'account' to your inventory instead... so it's actually going round in a circle. If you switch to a standard economy setting the plugin will work
For some reason, I can not get this plug-in to work. I'm using iConomy 6. When I deposit gold, It does not take it from my inventory. And when I use balance, It just tells me the amount of gold I have in my inventory.
@fromgate
I am currently using it in 1.2.3-R0.2, and it has been tested in 1.1-R6 ... but I have not tested it in R7 or R8.
If you can update me if it does work I would be grateful.
Hello! Is your ATMsign latest versions supports CB1.1-RB8, and may be CB1.2.3-R0.2?
1.3.2 works a treat. Thanks so much. This is by far the best and most well managed ATM plug in.
I've just uploaded v1.3.2 which was compiled using the JDK1.6 Java library. That will hopefully addresses some servers compatibility isses where servers are running Java 6, rather than Java 7.
Please let me know if it works as I have no way to test it on my Java 7 server.
@MyceliumCraft
This is becoming a common problem... it's to do with your having an older version of Java running on your server. You have Java 6 (or 1.6) running and the plugin is made in Java 7 (1.7). If it is possible to upgrade your Java version I would recommend it as many plugin creators are no using Java7.
I am however attempting to re-compile some of my plugins to work using Java6... but I think the newer version of Bukkit is more sensitive to it than the previous versions as I was running my plugins using Java6 before installing R6... when I did they stopped loading!
Leave it with me and I will see what I can come up with.
Problem with ATMsigns
I just put it in my plugins folder and this was the result:
C:\Users\Tim\Desktop\Server>java -Xmx1024M -Xms1024M -jar craftbukkit.jar 174 recipes 27 achievements 11:42:00 [INFO] Starting minecraft server version 1.1 11:42:00 [INFO] Loading properties 11:42:00 [INFO] Starting Minecraft server on *:25565 11:42:00 [WARNING] SERVER IS RUNNING IN OFFLINE/INSECURE MODE! 11:42:00 [WARNING] The server will make no attempt to authenticate usernames. Be ware. 11:42:00 [WARNING] While this makes the game possible to play without internet a ccess, it also opens up the ability for hackers to connect with any username the y choose. 11:42:00 [WARNING] To change this, set "online-mode" to "true" in the server.pro perties file. 11:42:01 [INFO] This server is running CraftBukkit version git-Bukkit-1.1-R6-b19 88jnks (MC: 1.1) (Implementing API version 1.1-R6) 11:42:03 [INFO] [PermissionsEx] sql backend registered! 11:42:03 [INFO] [PermissionsEx] file backend registered! 11:42:03 [INFO] [PermissionsEx] PermissionEx plugin initialized. 11:42:03 [SEVERE] Could not load 'plugins\ATMsigns.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError : me/ellbristow/ATMsigns/ATMsigns : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:287) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:211) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:206) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:182) at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur ationManager.java:53) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:147) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:407) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) Caused by: java.lang.UnsupportedClassVersionError: me/ellbristow/ATMsigns/ATMsig ns : 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.findClass(PluginClassLoader. java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:29) 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.j ava:139) ... 8 more 11:42:03 [INFO] [PermissionsEx] p2compat backend registered! 11:42:03 [INFO] [PermissionsCompat] Compatibility Layer Initalized! 11:42:03 [INFO] [AncientGates] Loading AncientGates v1.1 11:42:03 [INFO] [iSafe] Loading iSafe v2.62 11:42:03 [INFO] [EntitySuppressor] Loading EntitySuppressor v2.2 (1O5) 11:42:03 [INFO] [Vault] Loading Vault v1.2.12-b136 11:42:03 [INFO] [PermissionsEx] Loading PermissionsEx v1.19 11:42:03 [INFO] [PermissionsEx] Initializing file backend 11:42:04 [INFO] [PortalStick] Loading PortalStick v2.3.7 11:42:04 [INFO] [Jail] Loading Jail v2.1.1 11:42:04 [INFO] [Essentials] Loading Essentials v2.8.3 11:42:04 [INFO] [ChatManager] Loading ChatManager v1.19 11:42:04 [INFO] [EssentialsSpawn] Loading EssentialsSpawn v2.8.3 11:42:04 [INFO] [Permissions] Loading Permissions v2.7.7 11:42:04 [INFO] [BOSEconomy] Loading BOSEconomy v0.7.3.1 11:42:04 [INFO] [LWC] Loading LWC v4.1.1 (b645-git-b24cc99e) 11:42:04 [INFO] [ShowCaseStandalone] Loading ShowCaseStandalone v0.67 11:42:04 [INFO] [iSafe] Enabling iSafe v2.62 11:42:04 [INFO] [iSafe] Loaded configuration file. 11:42:04 [INFO] [iSafe] Loaded blacklist file. 11:42:04 [INFO] [iSafe] Loaded mobsConfig file. 11:42:05 [INFO] [iSafe :: 2.62] Loaded succesfully. 11:42:05 [INFO] [Vault] Enabling Vault v1.2.12-b136 11:42:05 [INFO] [Vault][Economy] BOSEconomy7 found: Waiting 11:42:05 [INFO] [Vault][Economy] Essentials Economy found: Waiting 11:42:05 [INFO] [Vault][Permission] PermissionsEx found: Waiting 11:42:05 [INFO] [Vault][Permission] SuperPermissions loaded as backup permission system. 11:42:05 [INFO] [Vault][Chat] PermissionsEx found: Waiting 11:42:05 [INFO] [Vault] Enabled Version 1.2.12-b136 11:42:05 [INFO] [LWC] Enabling LWC v4.1.1 (b645-git-b24cc99e) 11:42:05 [INFO] LWC: Loading shared objects 11:42:05 [INFO] LWC: Native library: plugins/LWC/lib/native/Windows/amd64/sqlite jdbc.dll 11:42:05 [INFO] LWC: Protection cache: 0/10000 11:42:05 [INFO] LWC: Loaded 207 locale strings (0 overrides) 11:42:06 [INFO] LWC: Permissions API: PEXPermissions 11:42:06 [INFO] LWC: Currency API: BOSECurrency 11:42:06 [INFO] LWC: Connecting to SQLite 11:42:06 [INFO] LWC: Performing any necessary database updates 11:42:06 [INFO] LWC: Using database: Native 11:42:06 [INFO] LWC: Precached 85 protections. 11:42:06 [INFO] LWC: At version: 4.1.1 (b645) 11:42:06 [INFO] Preparing level "Great_City" 11:42:06 [INFO] LWC: Latest version: 4.1.1 11:42:06 [INFO] Default game type: 1 11:42:07 [INFO] [iSafe] Initialized 'Great_City' succsesfully. 11:42:07 [INFO] [iSafe] Initialized 'Great_City_the_end' succsesfully. 11:42:07 [INFO] Preparing start region for level 0 (Seed: -4266259511861643720) 11:42:08 [INFO] Preparing spawn area: 36% 11:42:09 [INFO] Preparing spawn area: 89% 11:42:09 [INFO] Preparing start region for level 1 (Seed: -5833034919543751760) 11:42:10 [INFO] Preparing spawn area: 44% 11:42:11 [INFO] [iSafe] Loaded 'Great_City' succsesfully. 11:42:11 [INFO] [iSafe] Loaded 'Great_City_the_end' succsesfully. 11:42:11 [INFO] [AncientGates] Enabling AncientGates v1.1 11:42:11 [INFO] [AncientGates v1.1] Loading conf from disk 11:42:11 [INFO] [AncientGates v1.1] Loading gates from disk 11:42:11 [INFO] [AncientGates v1.1] Enabled 11:42:11 [INFO] [EntitySuppressor] Enabling EntitySuppressor v2.2 (1O5) 11:42:11 [INFO] [EntitySuppressor] ES: Loading Config File... 11:42:11 [INFO] [EntitySuppressor] Current Maximums for `world_nether`: Monsters (0) 11:42:11 [INFO] [EntitySuppressor] Current Maximums for `world`: Monsters(0) Ani mals(0) Squid(0) 11:42:11 [INFO] [EntitySuppressor] Current Maximums for `world_the_end`: Monster s(50) 11:42:11 [INFO] [EntitySuppressor] is enabled! {152 ms} 11:42:11 [INFO] [PermissionsEx] Enabling PermissionsEx v1.19 11:42:11 [INFO] [PermissionsEx] Superperms support enabled. 11:42:11 [INFO] [PermissionsEx] v1.19 enabled 11:42:11 [INFO] [Vault][Permission] PermissionsEx hooked. 11:42:11 [INFO] [Vault][Permission] PermissionsEx_Chat hooked. 11:42:11 [INFO] [PortalStick] Enabling PortalStick v2.3.7 11:42:11 [INFO] [PortalStick] 1 region(s) loaded 11:42:11 [INFO] [PortalStick] 0 grill(s) loaded 11:42:11 [INFO] [PortalStick] Using Permissions for user permissions 11:42:11 [INFO] [PortalStick] PortalStick enabled 11:42:11 [INFO] [Jail] Enabling Jail v2.1.1 11:42:11 [INFO] [Jail] Loaded 1 jail zones. 11:42:11 [INFO] [Jail] Loaded 0 prisoners. 11:42:11 [INFO] [Jail] Loaded 6 cells. 11:42:12 [INFO] [Jail] Jail v2.1.1 loaded! 11:42:12 [INFO] [Essentials] Enabling Essentials v2.8.3 11:42:13 [INFO] [Vault][Economy] Essentials Economy hooked. 11:42:13 [INFO] Essentials: Using PermissionsEx based permissions. 11:42:13 [INFO] [Essentials] Payment method found (Vault - Economy: BOSEconomy v ersion: 1.2.12-b136) 11:42:13 [INFO] [ChatManager] Enabling ChatManager v1.19 11:42:13 [INFO] [ChatManager] ChatManager enabled! 11:42:13 [INFO] [EssentialsSpawn] Enabling EssentialsSpawn v2.8.3 11:42:13 [INFO] [Permissions] Enabling Permissions v2.7.7 11:42:13 [INFO] [PermissionsCompat] Compatibility layer enabled. 11:42:13 [INFO] [BOSEconomy] Enabling BOSEconomy v0.7.3.1 11:42:13 [INFO] BOSEconomy: Located PermissionsEx 1.19. 11:42:13 [INFO] BOSEconomy v0.7.3.1 enabled. 11:42:13 [INFO] [Vault][Economy] BOSEconomy hooked. 11:42:14 [INFO] [ShowCaseStandalone] Enabling ShowCaseStandalone v0.67 11:42:14 [INFO] [SCS] Starting build 67.0, 2012-02-12 by kellerkindt, contributo rs: sorklin, bitfreeze 11:42:14 [INFO] [SCS] Loading configuration. 11:42:14 [INFO] [SCS] Initializing ShopHandler and ShopStorage 11:42:14 [INFO] [SCS] Using the MiniDB storage type. 11:42:14 [INFO] [SCS] getDatafolder: plugins\ShowCaseStandalone 11:42:14 [INFO] [SCS] Loading shops 11:42:14 [INFO] [SCS] Loaded 0 shops. 11:42:14 [INFO] [SCS] Loaded localization: locale_EN.yml 11:42:14 [INFO] [SCS] Searching for other Plugins... 11:42:14 [INFO] [SCS] Hooked into EssentialsEconomy 11:42:14 [INFO] [SCS] Hooked into BOSEconomy 11:42:14 [INFO] [SCS] Register event listeners. 11:42:14 [INFO] Server permissions file permissions.yml is empty, ignoring it 11:42:15 [INFO] Done (8.709s)! For help, type "help" or "?"
v1.3.1 uploaded
Tested working with 1.1-R6 AND 1.2.2-R0.1 (2013)
@ellbristow, Thank you so much for this plugin, so far it is working great, i need to test the conversion of other items as well but it works perfectly.
one last thing to bug you with, do you think you could implement a "fee to create" the sign, i find its easy to just create my own sign if i dont want it to cost money to take out.
D: i configure to config file to accept diamond and iron as well, yet it will still say i can only deposit gold
@Excalibur42
/me grins thankfully