confusedalex / goldeconomy Goto Github PK
View Code? Open in Web Editor NEWA simple gold based Economy plugin that just works
License: GNU General Public License v3.0
A simple gold based Economy plugin that just works
License: GNU General Public License v3.0
Just noticed this in the console when I restarted my server:
[27.06 12:40:36] [Server] [WARN] [TheGoldEconomy] Plugin TheGoldEconomy v1.4 generated an exception while executing task 11 [27.06 12:40:36] [Server] java.util.MissingResourceExceptionCan't find resource for bundle java.util.PropertyResourceBundle, key info.update [27.06 12:40:36] [Server] at java.util.ResourceBundle.getObject(ResourceBundle.java:564) ~[?:?] [27.06 12:40:36] [Server] at java.util.ResourceBundle.getString(ResourceBundle.java:521) ~[?:?] [27.06 12:40:36] [Server] at confusedalex.thegoldeconomy.TheGoldEconomy.lambda$onEnable$1(TheGoldEconomy.java:63) ~[TheGoldEconomy.jar:?] [27.06 12:40:36] [Server] at confusedalex.thegoldeconomy.UpdateChecker.lambda$getVersion$0(UpdateChecker.java:28) ~[TheGoldEconomy.jar:?] [27.06 12:40:36] [Server] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.jar:git-Paper-39] [27.06 12:40:36] [Server] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.jar:git-Paper-39] [27.06 12:40:36] [Server] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.jar:?] [27.06 12:40:36] [Server] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] [27.06 12:40:36] [Server] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] [27.06 12:40:36] [Server] at java.lang.Thread.run(Thread.java:833) ~[?:?]
The "/bank balance" command is not giving me an actual total of gold. The "total" is only how much I have in my inventory.
For example, it says: "[TheGoldEconomy] You have a total of 0 Gold (Bank: 799 | Inventory: 0)"
Shouldn't the total be what you have in the bank plus what you're carrying? Otherwise, it seems redundant with the inventory quantity at the end.
Hey, i have 1 gold in my inv but when i do /bank it says bank 0 inventory 9
I see there is a json file for fake account data, I'm just not sure if it's implemented or how to use it. What I'd like to do here is create a "server account" that stores money collected from taxes. Is this something I am able to do with the fake account data json?
When i use "bank add" and "bank remove" in console i get this: (purpur version: git-Purpur-1882 (MC: 1.19.3))
bank remove zuhir__ 1
[17:26:36 WARN]: java.lang.reflect.InvocationTargetException
[17:26:36 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:110)
[17:26:36 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[17:26:36 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command.runHook(Command.java:799)
[17:26:36 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command.execute(Command.java:697)
[17:26:36 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command.execute(Command.java:709)
[17:26:36 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command$1.execute(Command.java:444)
[17:26:36 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
[17:26:36 WARN]: at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchCommand(CraftServer.java:975)
[17:26:36 WARN]: at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchServerCommand(CraftServer.java:938)
[17:26:36 WARN]: at net.minecraft.server.dedicated.DedicatedServer.bg(DedicatedServer.java:536)
[17:26:36 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483)
[17:26:36 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1424)
[17:26:36 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1194)
[17:26:36 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
[17:26:36 WARN]: at java.base/java.lang.Thread.run(Thread.java:1589)
[17:26:36 WARN]: Caused by: java.lang.ClassCastException: class com.destroystokyo.paper.console.TerminalConsoleCommandSender cannot be cast to class org.bukkit.entity.Player (com.destroystokyo.paper.console.TerminalConsoleCommandSender and org.bukkit.entity.Player are in unnamed module of loader java.net.URLClassLoader @3d012ddd)
[17:26:36 WARN]: at TheGoldEconomy.jar//confusedalex.thegoldeconomy.Commands.remove(Commands.java:157)
[17:26:36 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[17:26:36 WARN]: ... 14 more
bank add zuhir__ 1
[17:24:16 WARN]: java.lang.reflect.InvocationTargetException
[17:24:16 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:110)
[17:24:16 WARN]: at java.base/java.lang.reflect.Method.invoke(Method.java:578)
[17:24:16 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command.runHook(Command.java:799)
[17:24:16 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command.execute(Command.java:697)
[17:24:16 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command.execute(Command.java:709)
[17:24:16 WARN]: at TheGoldEconomy.jar//redempt.redlib.commandmanager.Command$1.execute(Command.java:444)
[17:24:16 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
[17:24:16 WARN]: at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchCommand(CraftServer.java:975)
[17:24:16 WARN]: at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchServerCommand(CraftServer.java:938)
[17:24:16 WARN]: at net.minecraft.server.dedicated.DedicatedServer.bg(DedicatedServer.java:536)
[17:24:16 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:483)
[17:24:16 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1424)
[17:24:16 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1194)
[17:24:16 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
[17:24:16 WARN]: at java.base/java.lang.Thread.run(Thread.java:1589)
[17:24:16 WARN]: Caused by: java.lang.ClassCastException: class com.destroystokyo.paper.console.TerminalConsoleCommandSender cannot be cast to class org.bukkit.entity.Player (com.destroystokyo.paper.console.TerminalConsoleCommandSender and org.bukkit.entity.Player are in unnamed module of loader java.net.URLClassLoader @3d012ddd)
[17:24:16 WARN]: at TheGoldEconomy.jar//confusedalex.thegoldeconomy.Commands.add(Commands.java:148)
[17:24:16 WARN]: at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
[17:24:16 WARN]: ... 14 more
Also i translated plugin to spanish:
messages
info.balance = &fTienes &6%d&f de Oro (Banco: &6%d&f | Inventario: &6%d&f)
info.withdraw = &fHas retirado &6%d&f de Oro.
info.deposit = &fHas depositado &6%d&f de Oro.
info.sendmoneyto = ¡Has enviado &6%d&f de Oro a %s!
info.moneyreceived = ¡Has recibido &6%d de Oro &fde %s!
info.sender.moneyset = ¡Saldo de %s establecido a &6%d&f de Oro!
info.target.moneyset = ¡Tu saldo ha sido establecido a &6%d&f de Oro!
info.sender.addmoney = ¡Agregado(s) &6%d&f de Oro al saldo de %s!
info.target.addmoney = ¡&6%d&f de Oro agregado(s) a tu saldo!
info.sender.remove = ¡Eliminado(s) &6%d&f de Oro del saldo de %s!
info.target.remove = ¡&6%d&f de Oro eliminado(s) de tu saldo!
help.deposit = ¡Debes especificar cuanto Oro quieres depositar! Uso: /bank deposit <gold | all>
help.withdraw = ¡Debes especificar cuanto Oro quieres retirar! Uso: /bank withdraw <gold | all>
warning.update = &fEstás usando una versión desactualizada del plugin. Por favor actualiza a la última versión.
warning.drops = &f¡Algunos articulos fueron arrojados al piso! &7(inventario lleno)
error.bankplot = ¡Debes estar en una Parcela Bancaria para usar ese comando!
error.noplayer = ¡Jugador no encontrado!
error.zero = ¡No puedes retirar o depositar 0 de Oro!
error.negative = ¡No puedes retirar, depositar o transferir una cantidad negativa de Oro!
error.notenough = ¡No tienes suficiente Oro!
error.payyourself = ¡No puedes enviarte Oro a ti mismo!
error.notenoughmoneywithdraw = ¡No puedes transferir más Oro del que tienes!
command-format:
helpTitle: &a--[ &eAyuda para %cmdname% &a]--
helpEntry: &e%cmdname%&a: %help%
helpTextColor: &a
noPermission: &c¡No tienes permiso para ejecutar ese comando! (%permission%)
mustHoldItem: &c¡Debes tener un articulo en la mano para hacer eso!
playerOnly: &c¡Ese comando solo puede ser ejecutado por un jugador!
consoleOnly: &c¡Ese comando solo puede ser ejecutado por la consola!
invalidArgument: &cArgumento invalido para %arg%: %value%
needArgument: &cDebes dar al menos un argumento para %arg%
needFlagValue: &cDebes dar un valor para la propiedad %flag%
wrongArgumentCount: &cNúmero incorrecto de argumentos. Argumento(s) esperado(s) %args%, obtenidos %count%
invalidSubcommand: &cSubcomando invalido: %value%
contextDefaultFromConsole: &cNo se puede inferir el valor predeterminado del argumento %arg% para el remitente de la consola, por favor especifiquelo.
contextDefaultFlagFromConsole: &cNo se puede inferir el valor predeterminado de la propiedad %flag% para el remitente de la consola, por favor especifiquelo.
ambiguousOptional: &cHay al menos un argumento opcional ambiguo, por favor intentelo de nuevo sin omitir argumentos.
commandError: &cHa ocurrido un error al ejecutar el comando. Por favor contacta a un administrador.
showUsage: &cUso: %usage%
numberOutsideRange: &cNúmero fuera del rango permitido: %range%
like i want to make 1 gold equal to 5 money and remove gold block and nugget currencies
Something like /bank balance <player>
would be very useful.
Thanks for the awesome plugin!
Blocked by #9
When ever a player has more gold in there bank then what they can hold, the left over gold gets lost.
When in game and using the /bank withdraw function, any amount returns "you have withdrawn 0 gold" but still puts the gold in my inventory. this is occurring even to OP. This is problematic for obvious reasons.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.