Coder Social home page Coder Social logo

infoheads's Introduction

๐Ÿ‘‹ ใƒป Welcome

wakatime

Top Langs

infoheads's People

Contributors

dependabot[bot] avatar harry0198 avatar lorenzo0111 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

infoheads's Issues

Creation removal bug

When creating an info head, it can cause replacement of existing heads.

Cause:
When deleting a head it can cause the field private int keys to become out of sync.

Fix:

  • Change creation variable to not rely on private int keys
  • Use java UUID creation

Console commands do not work

Initially using PAPI OI tried to have the console use economy to give a player a specified amount of money and it wasn't working, so I tried using luckperms papi and that was not working either.

After a lot of trial and error, research and contacting support on the discord I realized the plugin itself was not working. I tried using the console command to give a player an item, put a player in creative and so on and nothing is working.

1.17 Update

This issue tracks plugin updates for 1.17 compatibility.

Todo:

  • Fix gui
  • Fix heads
  • Test storage
  • Test everything
  • Fix head give

Move saved heads/blocks to their own file

I think it would be beneficial, if all heads/blocks would be saved in their own file (i.e. saves.yml) because this would be useful if you f.e. want to reset all saved blocks and don't want to recreate the config again (in case you use own heads.)

Suggestion: /infoheads edit

The idea would be a new subcommand: /infoheads edit [msg|cmd|block]

The command would allow you to edit the current settings of a block/head including the block/head itself.

Examples

/infoheads edit text
/infoheads edit cmd

Allows you to update the Message(s) or command(s) you set for the plugin.
To update it could be done like this:

  • Run /infoheads edit msg|cmd
  • Provide the new message(s)/Command(s)
  • Left/Rightclick the block/head to change values from
/infoheads edit block

Updates the block/head you use for the command(s) and/or message(s).
To update:

  • Run /infoheads edit block
  • Destroy the old block and place the new one (Also perhaps on a new location to move)

Startup error

Updating to 2.0 gave me the following error on startup:

[03:25:37 INFO]: [InfoHeads] Enabling InfoHeads v2.0
[03:25:37 ERROR]: Error occurred while enabling InfoHeads v2.0 (Is it up to date?)
java.lang.NullPointerException: null
        at me.harry0198.infoheads.datastore.DataStore.addToConfig(DataStore.java:71) ~[?:?]
        at me.harry0198.infoheads.datastore.DataStore.addInfoHead(DataStore.java:46) ~[?:?]
        at me.harry0198.infoheads.InfoHeads.lambda$updateConfig$2(InfoHeads.java:152) ~[?:?]
        at java.util.ArrayList.forEach(ArrayList.java:1540) ~[?:?]
        at me.harry0198.infoheads.InfoHeads.updateConfig(InfoHeads.java:152) ~[?:?]
        at me.harry0198.infoheads.InfoHeads.load(InfoHeads.java:99) ~[?:?]
        at me.harry0198.infoheads.InfoHeads.onEnable(InfoHeads.java:75) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[patched_1.15.2.jar:git-Paper-146]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:337) ~[patched_1.15.2.jar:git-Paper-146]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:483) ~[patched_1.15.2.jar:git-Paper-146]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugin(CraftServer.java:470) ~[patched_1.15.2.jar:git-Paper-146]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.enablePlugins(CraftServer.java:384) ~[patched_1.15.2.jar:git-Paper-146]
        at net.minecraft.server.v1_15_R1.MinecraftServer.a(MinecraftServer.java) ~[patched_1.15.2.jar:git-Paper-146]
        at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:298) ~[patched_1.15.2.jar:git-Paper-146]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:885) ~[patched_1.15.2.jar:git-Paper-146]
        at java.lang.Thread.run(Thread.java:834) [?:?]

Multiple bugs and issues

I discovered a small bug

Issue

When typing /infoheads reload I get /infoheads as a response right after the confirm message of the reload indicating that there is a missing return true or it just returns false.

Other small issues

Why is the plugin called InfoHeads when it can be used with any block?
And could you perhaps add that removing the head/block removes the setting from the config?

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.