xxcoderforlife / simple-drugs Goto Github PK
View Code? Open in Web Editor NEWA Spigot Plugin to add Drugs to Minecraft.
License: GNU Affero General Public License v3.0
A Spigot Plugin to add Drugs to Minecraft.
License: GNU Affero General Public License v3.0
Describe the bug
Un-able to load drugs, crafting components, or seeds when using non-ascii related names.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should load item and keep plugin going
v2.7+dev-build129 Right Click error
This is something, I'm trying to fix as of the latest version.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
I cannot use drugs, event if I have the permission to use it (drugs.use.*)
I also can't get drugs from the bag of drugs (click but don't get anything)
To Reproduce
Steps to reproduce the behavior:
Craft a drug
Right click with it in hand
Nothing append
Open bag of drugs
Left click on the wanted drug
Nothing append
Expected behavior
Get effects of the drugs and get the drugs from bag of drugs
When you load up the recipes it will only spam Weed
The Discord Invite Link on Spigot isn't working!
Describe the bug
Unable to have Crafting Component Recipes that require other Crafting Components
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should save recipe and reload fine
Screenshots
If applicable, add screenshots to help explain your problem.
In-Game editor to toggle and edit all configuration options.
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Add 1.18 support
Describe alternatives you've considered
Adding 1.18 support for 1.18 users
Add in a optional Cooldown system to limit the amount you can use the drugs.
Add in seeds and plants to use so you can grow the drugs.
Log dump, running spigot 1.8.8
[Server thread/ERROR]: Error occurred while enabling SimpleDrugs v2.6.8-alpha (Is it up to date?)
java.lang.NoSuchFieldError: TROPICAL_FISH_BUCKET
at me.Coderforlife.Drugs.CraftingCheck.(CraftingCheck.java:21) ~[?:?]
at me.Coderforlife.Drugs.Main.WeedRec(Main.java:85) ~[?:?]
at me.Coderforlife.Drugs.Main.onEnable(Main.java:37) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.java:359) [patched.jar:git-PaperSpigot-"4c7641d"]
at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.java:318) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:408) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:372) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:327) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.java:267) [patched.jar:git-PaperSpigot-"4c7641d"]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:563) [patched.jar:git-PaperSpigot-"4c7641d"]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To load and work
Screenshots
[16:51:43 INFO]: ============[Simple-Drugs]============
[16:51:43 INFO]: [SD] Starting up Simple-Drugs Version: 2.7.7-DEV
[16:51:44 INFO]: [SD] Vault has been found.
[16:51:44 INFO]: [SD] Hooked into Vault.
[16:51:44 INFO]: [SD] Found PlaceHolderAPI.
[16:51:44 INFO]: [PlaceholderAPI] Successfully registered expansion: drug [2.7]
[16:51:44 INFO]: [SD] Hooked into PlaceHolderAPI
[16:51:44 ERROR]: Error occurred while enabling Simple-Drugs v2.7.7-DEV (Is it up to date?)
java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonElement.getAsDouble()" because the return value of "com.google.gson.JsonObject.get(String)" is null
at me.Coderforlife.SimpleDrugs.Util.GsonAdapaters.DrugAdapter.deserialize(DrugAdapter.java:44) ~[Simple-Drugs-2.7.7-DEV.jar:?]
at me.Coderforlife.SimpleDrugs.Util.GsonAdapaters.DrugAdapter.deserialize(DrugAdapter.java:22) ~[Simple-Drugs-2.7.7-DEV.jar:?]
at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1214) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1319) ~[gson-2.10.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:1261) ~[gson-2.10.jar:?]
at me.Coderforlife.SimpleDrugs.Druging.DrugManager.createFromJson(DrugManager.java:75) ~[Simple-Drugs-2.7.7-DEV.jar:?]
at me.Coderforlife.SimpleDrugs.Util.AbstractSDCraftableManager.loadFiles(AbstractSDCraftableManager.java:108) ~[Simple-Drugs-2.7.7-DEV.jar:?]
at me.Coderforlife.SimpleDrugs.Setup.<init>(Setup.java:37) ~[Simple-Drugs-2.7.7-DEV.jar:?]
at me.Coderforlife.SimpleDrugs.Main.onEnable(Main.java:92) ~[Simple-Drugs-2.7.7-DEV.jar:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:281) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperPluginInstanceManager.enablePlugin(PaperPluginInstanceManager.java:189) ~[paper-1.19.4.jar:git-Paper-550]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.enablePlugin(PaperPluginManagerImpl.java:104) ~[paper-1.19.4.jar:git-Paper-550]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:507) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugin(CraftServer.java:563) ~[paper-1.19.4.jar:git-Paper-550]
at org.bukkit.craftbukkit.v1_19_R3.CraftServer.enablePlugins(CraftServer.java:474) ~[paper-1.19.4.jar:git-Paper-550]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:638) ~[paper-1.19.4.jar:git-Paper-550]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:437) ~[paper-1.19.4.jar:git-Paper-550]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:308) ~[paper-1.19.4.jar:git-Paper-550]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1104) ~[paper-1.19.4.jar:git-Paper-550]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-550]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
[16:51:44 INFO]: [SD] Disabling Simple-Drugs v2.7.7-DEV
Additional context
None
Hello! just wondering, if I make a fork, can I clean up the code?
Add in an addiction system where players need to use drugs if they become addicted or if they use too much OD
Describe the bug
When breaking a drug crop, it give no loot:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Get coke drug when breaking the crop.
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.