Giter Site home page Giter Site logo

simple-drugs's Introduction

simple-drugs's People

Contributors

gorgeousone avatar inspectorrex avatar oodvg avatar qeaml avatar xxcoderforlife avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

simple-drugs's Issues

Unable to load items

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:

  1. Create an SDCraftableItem using a non-ascii name
  2. Reload server

Expected behavior
Should load item and keep plugin going

  • 2.7.3
  • Paper/Spigot 1.18

Error when clicking on an empty slot

Describe the bug
I got an error in console when i made a click in my inventory in an empty slot

To Reproduce
Steps to reproduce the behavior:

  1. Open inventory
  2. Click on an empty slot
  3. See the error in console

Expected behavior
No errors in console

Screenshots
image

  • 2.7.3 DEV
  • Paper: git-Paper-187

crafting doesnt work in 1.19.3

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

  • Plugin Version
  • Server Version and if Paper,Spigot or Bukkkit

Additional context
Add any other context about the problem here.

Can't use drugs

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:

  1. Craft a drug

  2. Right click with it in hand

  3. Nothing append

  4. Open bag of drugs

  5. Left click on the wanted drug

  6. Nothing append

Expected behavior
Get effects of the drugs and get the drugs from bag of drugs

  • 2.7.3 DEV
  • Paper: git-Paper-187

Spam with /drugs give

Describe the bug
Whenever the Player types /drugs give you'll get this
image

To Reproduce
Steps to reproduce the behavior:

  • Type /drugs give
  • Plugin Version - Build 264

Crafting Component Bug

Describe the bug
Unable to have Crafting Component Recipes that require other Crafting Components

To Reproduce
Steps to reproduce the behavior:

  1. Create Crafting Component Recipe
  2. Create Second Crafting Component
  3. Edit First Crafting Component
  4. Put Second Crafting Component in Recipe
  5. Reload Server

Expected behavior
Should save recipe and reload fine

Screenshots
If applicable, add screenshots to help explain your problem.

  • Plugin Version
    2.7.3-R-Dev
  • Server Version and if Paper,Spigot or Bukkkit
    Spigot 1.18

adding 1.18

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

Custom Drug Plants

Custom Drug Plants

Add in seeds and plants to use so you can grow the drugs.

Error loading 2.6.8-alpha

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]

Doens't load on paper 1.19.4

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Download latest DEV build
  2. Upload to plugin forlder
  3. Start server
  4. See error

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
  • Plugin Version 2.7.7-DEV
  • Server Version 1.19.4 and if Paper

Additional context
None

question

Hello! just wondering, if I make a fork, can I clean up the code?

No loot when planting drug crop

Describe the bug
When breaking a drug crop, it give no loot:

  • If not growth it not give back the seed (just a normal seed)
  • If growth with bonemeal it give normal seed and wheat

To Reproduce
Steps to reproduce the behavior:

  1. Craft a drug seed (here Coke seed)
  2. Plant it
  3. Use bonemeal to fully growth it
  4. Break the plant and see it only give normal seed and Wheat

Expected behavior
Get coke drug when breaking the crop.

  • 2.7.3 DEV
  • Paper: git-Paper-187

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.