Spigot ForceResourcePack [1.7 | 1.8 | 1.9] 1.1.12

Force players to use a resource pack

  1. Make sure your config is correctly formatted.
     
  2. I restarted server
     
  3. So how to disable resource pack on join?
    I want to use command
     
  4. SlimeDog

    Moderator Patron

    On up-to-date Spigot/MC 1.9 server installation, ForceResourcePack 1.1.0 and ResourcePackAPI 2.0.0 load without error. Upon invocation (by logging in):
    [14:01:59] [Server thread/WARN]: [ForceResourcePack] Task #232 for ForceResourcePack v1.1.0 generated an exception
    java.lang.NoClassDefFoundError: org/inventivetalent/reflection/resolver/ClassResolver
    at org.inventivetalent.rpapi.ResourcePackAPI.<clinit>(ResourcePackAPI.java:123) ~[?:?]
    at org.inventivetalent.rpforce.ResourcePackHandler.setPack(ResourcePackHandler.java:43) ~[?:?]
    at org.inventivetalent.rpforce.OnListener$1.run(OnListener.java:52) ~[?:?]
    at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:729) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]
    Caused by: java.lang.ClassNotFoundException: org.inventivetalent.reflection.resolver.ClassResolver
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_71]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47ef13ca4]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47ef13ca4]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_71]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_71]
    ... 10 more
    [14:01:59] [Server thread/WARN]: [ResourcePackApi] Task #231 for ResourcePackApi v2.0.0 generated an exception
    java.lang.NoClassDefFoundError: Could not initialize class org.inventivetalent.rpapi.ResourcePackAPI
    at org.inventivetalent.rpapi.RPApiPlugin$1.run(RPApiPlugin.java:114) ~[?:?]
    at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftTask.run(CraftTask.java:71) ~[spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at org.bukkit.craftbukkit.v1_9_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:350) [spigot-1.9.jar-2016-0303:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.MinecraftServer.D(MinecraftServer.java:729) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.DedicatedServer.D(DedicatedServer.java:400) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.MinecraftServer.C(MinecraftServer.java:660) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:559) [spigot-1.9.jar-2016-03-03:git-Spigot-87e2f47-ef13ca4]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_71]
    [14:02:00] [Netty Epoll Server IO #1/INFO]: [email protected]
    [14:02:00] [Netty Epoll Server IO #1/INFO]: CraftPlayer{name=rambeau}
    [14:02:00] [Netty Epoll Server IO #1/INFO]: 7f799775488fa416333825a25baf8195d67d89ee
    [14:02:00] [Netty Epoll Server IO #1/INFO]: ACCEPTED
    [14:02:04] [Netty Epoll Server IO #1/INFO]: [email protected]
    [14:02:04] [Netty Epoll Server IO #1/INFO]: CraftPlayer{name=rambeau}
    [14:02:04] [Netty Epoll Server IO #1/INFO]: 7f799775488fa416333825a25baf8195d67d89ee
    [14:02:04] [Netty Epoll Server IO #1/INFO]: SUCCESSFULLY_LOADED
     
  5. SlimeDog

    Moderator Patron

    This is not a strictly a 1.9 issue. Same results on 1.8.8 server.
     
  6. SlimeDog

    Moderator Patron

    Apologies for the (deleted) report. User edit error in the config file. With the correct file content (ie., the URL), both ResourcePackAPI and ForceResourcePack load without error. The resource pack loads. In-game reports "Attempting to send you the resource pack.." and the console reports:
    [17:24:55 INFO]: [ReflectionHelper] Version is v1_9_R1 (109001)​
    There are no console errors from the connection. There is no report of success in-game or on the console, but the resource pack is installed. It is nice not to have the API errors, but it would be good if success were recognized and reported, as it used to be. I attempted connection several times, just to be sure.
     
  7. Make sure your client isn't set to deny the resource pack. It might be an issue with 1.9 (probably the client), I'll have to test that.
     
  8. SlimeDog

    Moderator Patron

    The resource pack is accepted. FRP is not reporting that fact. Prior to the latest change, it was reporting SUCCESS, but it was also generating exceptions to the console. The exception are gone, but so is the status reporting.

    FRP 1.1.0 with ResourcePackAPI 2.0.0 looks the same on Spigot/MC 1.9 and 1.8.8: console exceptions, but status SUCCESS reported in-game.

    FRP 1.1.0 with ResourcePackAPI 2.0.1 looks the same on Spigot/MC 1.9 and 1.8.8: no console exceptions, but status unreported in-game after "Attempting to send you the resource pack...".
     
    #52 SlimeDog, Mar 5, 2016
    Last edited: Mar 5, 2016
  9. So how to disable resource pack on join?
    I want to use command x2
     
  10. SlimeDog

    Moderator Patron

    ForceResourcePack 1.1.1 loads without error with ResourcePackAPI 2.0.1. My resource pack is loaded on connect, but now there is no indication that the plugin was invoked. No "Attempting..." or "SUCCESS" status information, either in the console log or in-game. My configuration includes:
    console_log: true​
    Am I missing something? Please restore the status logging as a configuration option.
     
  11. Apologies, all of the 1.9 versions of ResourcePackAPI weren't functional at all. Should be working with the latest RPAPI version now.
     
  12. SlimeDog

    Moderator Patron

    Fix confirmed for Spigot/MC 1.9 and 1.8.8, with ResourcePackAPI 2.0.2 and latest ForceResourcePack 1.1.1 (you really should bump the version each release) and configuration change.

    Works fast and seamlessly.
     
    #58 SlimeDog, Mar 5, 2016
    Last edited: Mar 5, 2016
  13. @OverscorePlayZ
    Please use the discussion to report issues before reviewing. Please remove the review if you want to get support.
    Please post the link you tried to use. Also note that you can't use a local file, it has to be uploaded to a server which is accessible to the Minecraft client.