GithubHelp home page GithubHelp logo

mediusecho / particlehats Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 2.0 27.42 MB

Customizable particle plugin

Home Page: https://www.spigotmc.org/resources/particlehats.1007/

License: GNU General Public License v3.0

Java 100.00%
spigot-plugin spigot-resource minecraft cosmetic particle spigot bukkit bukkit-plugin

particlehats's People

Contributors

d3dwiz avatar mediusecho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

particlehats's Issues

API Equip message

ParticleHats Version: 4.2.16
Minecraft Version: 1.19.2

Using the method: equipHatFromLabel() has a parameter to whether or not the player in question should receive a message stating the hat was equipped; however, is impractical because either or still results in there being a message being sent to the direct player.

Here are some screenshots:
try { hatsAPI.equipHatFromLabel(player, label, true); } catch (InvalidLabelException e) { e.printStackTrace(); }

image

try { hatsAPI.equipHatFromLabel(player, label, false); } catch (InvalidLabelException e) { e.printStackTrace(); }

image

As you can see from above, you receive " equipped" making the method above redundant and impractical.

I'm not sure if anybody else has experienced this issue; however, a temporary solution would just to use the 'h set' command and executing it through your code instead.

Unrelated:

I would like to suggest configuration values for the 'h set' command's demo feature & a menu demo set feature (Could be the same value for both stored in config.yml). Thumbs up to entire development on this plugin, been using it for a hot while now and haven't ran into anything damaging. Huge props.

visual bug

When user Removing particle from ''Equipped Particles'' menu, it goes to the main menu to select effects.
But at the same time, he still has the appearance that the effect he has already removed is still equipped.
https://disk.yandex.ru/i/PihOzhb_LWHqpA

And I have a problem with displaying some effects, I just don't see them.
-Creeper Face
-Angel Wings
-Rocket Tail
-Bubble WIngs
-Walking Billboard

Async Request?

So this isn't really an issue, but probably could be on bigger servers. Basically, is there a way where ParticleHats can be run asynchronously? On small servers, it's not a big deal but for larger servers, it'll probably bog it down, as noted by some people. Just a feature request to make the plugin better as it already is, thanks! :)

How to set permissions?

Give particlehats.command.h the player can use all effects
How to make each effect have a permission?

Effect still there when I disable the particle

I changed it in the config so that you can only wear one particle at a time. So if one is equipped and the person equips a new one, the old particle deactivates automatically (since only 1 particle can be worn). But if the previous particle had a potion effect (for example speed), then it still was there. So the new particle is activated and the old deactivated but the effect is still there. I'm not sure if anyone had this issue to but I'd be glad if that would be fixed. (no bungee, spigot 1.8.8 and newest plugin version). Thanks in advance and for reading this issue.

Feature Request: Limiting specific particles per world

I'd like to have certain particles (or particle pages) enabled on specific worlds. For instance I'd like for my pvp server to have most particles enabled in the lobby world but then only particles used with a bow which are in a seperate yml file to be usable in the pvp worlds as well as the lobby.

Failed to load on 1.16.2

[11:58:00] [Server thread/ERROR]: Could not load 'plugins/ParticleHats.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.util.zip.ZipException: invalid LOC header (bad signature)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:141) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:397) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:305) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.craftbukkit.v1_16_R2.CraftServer.loadPlugins(CraftServer.java:387) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.DedicatedServer.init(DedicatedServer.java:208) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.w(MinecraftServer.java:939) ~[patched_1.16.2.jar:git-Paper-174]
at net.minecraft.server.v1_16_R2.MinecraftServer.lambda$a$0(MinecraftServer.java:177) ~[patched_1.16.2.jar:git-Paper-174]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_262]
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method) ~[?:1.8.0_262]
at java.util.zip.ZipFile.access$1400(ZipFile.java:60) ~[?:1.8.0_262]
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734) ~[?:1.8.0_262]
at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:434) ~[?:1.8.0_262]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[?:1.8.0_262]
at sun.misc.IOUtils.readNBytes(IOUtils.java:180) ~[?:1.8.0_262]
at sun.misc.IOUtils.readAllBytes(IOUtils.java:116) ~[?:1.8.0_262]
at java.util.jar.JarFile.getBytes(JarFile.java:426) ~[?:1.8.0_262]
at java.util.jar.JarFile.getManifestFromReference(JarFile.java:193) ~[?:1.8.0_262]
at java.util.jar.JarFile.getManifest(JarFile.java:180) ~[?:1.8.0_262]
at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:60) ~[patched_1.16.2.jar:git-Paper-174]
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:137) ~[patched_1.16.2.jar:git-Paper-174]

ParticleHat Suggestions

Here is a bunch of suggestions that I've compiled over a couple months using this plugin on my server.

  • A way for a single player to disable themselves from seeing particles all together. Although, Minecraft settings is probably their best bet at obtaining such a option, it would be nice for players to view Minecraft particles normally and not have the potential increased lag that comes with having to see an intensive amount of particles coming from somebody else's enabled particle hat.

Suggested command usage: /h view <enable|disable>

  • Configable values for 'demo' methods. I found that the demo part of the command to be very useful and would love to be able to see API usages of this along-side a way for me to set an amount of time instead of it being a fixed value from the author. I saw you mentioned you'd like for me to elaborate on this suggestion so here's at it:

Suggestion usage: /h demo <tellPlayer true|false>
Suggestion API usage:

    /**
     * Creates a new hat from the given label and equips it
     *
     * @param player The player this new hat will be given to
     * @param label The unique label that defines this hat
     * @param tellPlayer Shows the player the HAT_EQUIPPED message
     * @param long You can decide how long you'd like to display this label for in ticks.
     * @throws InvalidLabelException If label doesn't not exist
     * @throws IllegalArgumentException If any arguments are invalid
     */
    public abstract void equipHatFromLabel(Player player, String label, boolean tellPlayer, long ticks) throws InvalidLabelException, IllegalArgumentException;
  • MiniaturePets support. The MiniaturePets plugin is a great way for us to create different models using armor stands. Being able to attach particles would be an absolute bonus. It would be cool to have a configuration file seperately for MiniaturePets and a menu similar to the CitizensNPC usage.

image
image

  • Animations from files. Right now ParticleHats have it so if you put a PNG image into the 'types' folder, you can use that image as a type for your particle. It would be cool if you could put folders inside of the type folder and have numerous PNG files that the plugin loops over to create an animated image. I would believe this to be a complex idea but here's kind of a better understanding:

image
image

Please read with a grain of salt, these are just ideas that I have ran into issues with that I personally would love to be implemented. Again, thank you for such an awesome plugin :)

question

Hi, I was wondering if you had a discord group to ask for support.

Particle Offset as a static particle does not apply the same to the animation.

Hello. The title sums up my issue but i'm trying to make particles that kinda sit on the back of a player; however, I have noticed that the particle offset kinda resets it's position and does not budge when turned into the animated version of itself.

I tried this with the 'hoop' particle type.

How it's suppose to work:
image
image

Turning it into the animation version:
image

I encountered this trying to create a galaxy'esk particle that sits on the back of the player.

Permission for Particles Not Working As Expected

Hi, thank you for your great plugin!
However, I've found some issues when I am using Mysql and permission.
I used the default particles.yml and added required permission for each effect, the permission can show up in the database too but other players still can access the effects without required permission.
This is the same when I edit current effects in game.
However, the permission system worked when I add new effects in game.
Am I doing anything wrong?
Thanks in advance!

LuckPerms temporary permission support

As it stands right now, particles are permanently equipped until the player manually un-equips them. This feature would allow particles to automatically be unequipped if the player no longer has permission to equip them.

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.