Spigot SoundMuffler 1.0.6-SNAPSHOT

Muffle sounds in certain areas

  1. inventivetalent submitted a new resource:

    SoundMuffler - Muffle sounds in certain areas

    Read more about this resource...
     
  2. Wowww! So you can disable the sound of farms, epic!

    Maybe also a WorldGuard option that you can silence a specif area with WorldGuard?
     
  3. Perfect :)
     
    • Like Like x 1
  4. @Chazmondo
    Thanks for the review :)
    Do you get any errors in 1.8?
     
    • Friendly Friendly x 1
  5. I have not tried it yet, i just saw it says "1.9, 1.10" for working versions while however i will try this now :)
     
  6. Code (Text):
    [03:23:39] [Server thread/INFO]: [SoundMuffler] Enabling SoundMuffler v1.0.1
    [03:23:39] [Server thread/ERROR]: Error occurred while enabling SoundMuffler v1.0.1 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/inventivetalent/pluginannotations/PluginAnnotations
        at org.inventivetalent.soundmuffler.SoundMuffler.onEnable(SoundMuffler.java:53) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugin(CraftServer.java:362) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugins(CraftServer.java:322) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at net.minecraft.server.v1_10_R1.MinecraftServer.t(MinecraftServer.java:417) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at net.minecraft.server.v1_10_R1.MinecraftServer.l(MinecraftServer.java:382) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at net.minecraft.server.v1_10_R1.MinecraftServer.a(MinecraftServer.java:337) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:270) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:540) [spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_91]
    Caused by: java.lang.ClassNotFoundException: org.inventivetalent.pluginannotations.PluginAnnotations
        at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_91]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.10-R0.1-SNAPSHOT.jar:git-Spigot-a9631d2-d027625]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
        at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_91]
        ... 12 more
     
  7. floory565

    Moderator

    Would you be able to implement a feature (or create a new plugin) where if your health drops below a configurable amount, sounds is muffled for a configurable amount of seconds?
     
    • Agree Agree x 1
  8. Oh, so like an effect that you're stunned or unconscious after taking damage? Sounds like a cool idea, I'll add it to my TODOs :)
     
    • Optimistic Optimistic x 1
  9. floory565

    Moderator

    Exactly! Thanks!
     
  10. Put an issue on the tracker but in case anyone else has it so they know it's been reported I'll stick it here too:

    Error given in the console on load:
    [14:37:59 ERROR]: Could not load 'plugins\SoundMuffler.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugins(CraftServer.java:297) [minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:203) [minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:535) [minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
    Caused by: java.lang.ExceptionInInitializerError
    at org.inventivetalent.soundmuffler.SoundMuffler.<init>(SoundMuffler.java:39) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_111]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_111]
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_111]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    ... 6 more
    Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: Could not resolve class for [ResolverQuery{name='org.bukkit.craftbukkit.UNKNOWN.entity.CraftEntity', types=[]}]
    at org.inventivetalent.reflection.minecraft.Minecraft.<clinit>(Minecraft.java:56) ~[?:?]
    at org.inventivetalent.soundmuffler.SoundMuffler.<init>(SoundMuffler.java:39) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_111]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_111]
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_111]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    ... 6 more
    Caused by: java.lang.ClassNotFoundException: Could not resolve class for [ResolverQuery{name='org.bukkit.craftbukkit.UNKNOWN.entity.CraftEntity', types=[]}]
    at org.inventivetalent.reflection.resolver.ClassResolver.notFoundException(ClassResolver.java:68) ~[?:?]
    at org.inventivetalent.reflection.resolver.ClassResolver.notFoundException(ClassResolver.java:36) ~[?:?]
    at org.inventivetalent.reflection.resolver.ResolverAbstract.resolve(ResolverAbstract.java:88) ~[?:?]
    at org.inventivetalent.reflection.resolver.ClassResolver.resolve(ClassResolver.java:55) ~[?:?]
    at org.inventivetalent.reflection.resolver.minecraft.OBCClassResolver.resolve(OBCClassResolver.java:46) ~[?:?]
    at org.inventivetalent.reflection.minecraft.Minecraft.<clinit>(Minecraft.java:54) ~[?:?]
    at org.inventivetalent.soundmuffler.SoundMuffler.<init>(SoundMuffler.java:39) ~[?:?]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_111]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_111]
    at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_111]
    at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_111]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[minecraft_server.jar:git-Spigot-078e2f8-9ff3d7f]
    ... 6 more

    Server version: Spigot 1.10.2 (Up to date as of about a week ago)
    PacketListenerAPI is also installed (PLA and SM on latest versions)
     
  11. =======================
    Good Plugin, Congratulations
    =======================
     
  12. Plugin still works but i get this error in the log

    Code (Text):
    [16:43:59] [Server thread/ERROR]: Fatal error trying to convert SoundMuffler v1.0.3-SNAPSHOT:org/inventivetalent/soundmuffler/SoundMuffler.class
    org.bukkit.plugin.AuthorNagException: No legacy enum constant for PLAYER_HEAD. Did you forget to define api-version: 1.13 in your plugin.yml?
     
  13. Hey,
    when the Plugin starts i get the same Error as the Guy above me and the Plugin still works.
    but if i place it, it will not be removed from my inventory.

    aber ein Kuhles Plugin ist es dennoch. :)