Giter VIP home page Giter VIP logo

resourcepacksplugins's Introduction

ResourcepacksPlugins

Total downloads Work time

Repository for the different resourcepacks plugins by Phoenix616: BungeeResourcepacks, WorldResourcepacks and VelocityResourcepacks.

Development

Dev builds: https://ci.minebench.de/job/ResourcepacksPlugins/

Integrating

Javadocs: https://docs.phoenix616.dev/resourcepacksplugins/

You can easily depend on it via maven (or gradle). The core contains all the management and the bukkit/bungee artifacts the platform depended code.

Repository

    <repositories>
        <repository>
            <id>minebench-repo</id>
            <url>https://repo.minebench.de/</url>
        </repository>
    </repositories>

Artifacts

    <dependencies>
        <dependency>
            <groupId>de.themoep.resourcepacksplugin</groupId>
            <artifactId>bukkit</artifactId>
            <version>1.8.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>de.themoep.resourcepacksplugin</groupId>
            <artifactId>bungee</artifactId>
            <version>1.8.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>de.themoep.resourcepacksplugin</groupId>
            <artifactId>velocity</artifactId>
            <version>1.8.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>de.themoep.resourcepacksplugin</groupId>
            <artifactId>core</artifactId>
            <version>1.8.1-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

The plugin is licensed under the GPLv3:

ResourcepacksPlugins
Copyright (C) 2020 Max Lee aka Phoenix616 ([email protected])

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

resourcepacksplugins's People

Contributors

phoenix616 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

resourcepacksplugins's Issues

IllegalAccessError: failed to access class net.md_5.bungee.protocol.Protocol$DirectionData

Waterfall dev 258 (BungeeCord 1.13.2)
BungeeResourcePack dev 259

Broke from a newer BungeeCord commit? SpigotMC/BungeeCord@9133a6f#diff-f5da6738ad3c03e59c357db9fd022745R282

[08:52:00] [main/INFO] [BungeeResourcepacks]: BungeeCord 1.9.4+ (404) detected!
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.8
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.9
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.12
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.12.1
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.12.2
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.13
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.13.1
[08:52:00] [main/INFO] [BungeeResourcepacks]: Registered ResourcePackSendPacket for 1.13.2
[08:52:00] [main/WARN]: Exception encountered when loading plugin: BungeeResourcepacks
java.lang.IllegalAccessError: failed to access class net.md_5.bungee.protocol.Protocol$DirectionData from class de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks (net.md_5.bungee.protocol.Protocol$DirectionData is in unnamed module of loader 'app'; de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks is in unnamed module of loader net.md_5.bungee.api.plugin.PluginClassloader @5b22b970)
	at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.onEnable(BungeeResourcepacks.java:160) ~[?:?]
	at net.md_5.bungee.api.plugin.PluginManager.enablePlugins(PluginManager.java:282) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.13-SNAPSHOT:1732f85:258]
	at net.md_5.bungee.BungeeCord.start(BungeeCord.java:282) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.13-SNAPSHOT:1732f85:258]
	at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:56) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.13-SNAPSHOT:1732f85:258]
	at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.13-SNAPSHOT:1732f85:258]

Resource pack version detection not functional.

Waterfall dev 192 (BungeeCord upstream dev 1333)
Paper dev 1502 (Spigot 1.12.2)
BungeeResourcePacks dev 210

I recently set my serverpack default to "none" with 1.13 releasing since if people accept the outdated resource pack while connecting under 1.13, all their textures break and turn purple.

debug: false
autogeneratehashes: true
messages:
  usepack: You now use the pack %pack%!
  packlisthead: 'Packs available to you:'
  nopacks: No packs found!
packs:
  serverpack:
    url: http://censored.com/resources/ServerPack.zip
    hash: 706488aff3a94eaf9738532954d1665ded444489
    format: 3
    restricted: false
    permission: bungeeresourcepacks.pack.serverpack
  none:
    url: http://cdn.moep.tv/files/Empty.zip
    hash: c05faed4680570a6159823e13fbae2ae830166ab
    format: 0
    restricted: false
    permission: bungeeresourcepacks.pack.none
empty: none
global:
  send-delay: 10
servers:
  Server:
    pack: none

Players have these permissions by default in BungeeCord.

  - bungeeresourcepacks.command.usepack
  - bungeeresourcepacks.pack.serverpack
  - bungeeresourcepacks.pack.none

However when they type the command /usepack serverpack in-game, it does not turn the pack on. It outputs that the pack changed and typing /usepack shows the new pack selected instead of none, but nothing is sent and nothing is enabled. Relogging, it defaults back to none. The players.yml file inside BungeeResourcepacks folder remains empty.

Edit: I'm an idiot and forgot I left my resource pack prompt disabled when testing... But this issue is still partially true. Switching packs doesn't seem to save in the player.yml - you are required to set your preferred pack each time you relog.

Server icon not displaying.

Paper dev 213 (Spigot 1.14.4)
Travertine dev 109 (BungeeCord)
BungeeResourcePack dev 280

Is it not possible to display the server resource pack icon when loading a server pack? The icon is 64x64 and png, displays fine when loading the pack zip manually. Just when the resource pack is forced loaded by the server, there is no icon.

link

Resource pack update does not download and use the newer version on first login of new update.

Not sure if this is a bug or just a vanilla issue but if you push a resource pack update and regenerate hashes with BungeeResourcePack, when someone logs in for the first time since the update, it does not download and enable the pack.

Client logs seem to detect the mismatched server pack and deletes the local server pack, but does not re-download and enable. Relogging again, the pack re-downloads and enables.

Resource Pack doesn't download

I configured it like that:

  heridia:
    url: http://boehi.xyz/Heridia.zip
    hash: ed12f08884db3c8818746b5ba3fc85a80eb63c38
    format: 0
    restricted: false
    permission: resourcepacksplugin.pack.heridia

And when I join, it shows a download screen but 0.05 secondes only, then disappears and nothing changes. Even if I use /usepack, it does the same.

API to set ResourcePermanently from Server

If I run a plugin on a backend server (Behind a bungeecord proxy), I can't send commands to the bungeecord plugin to set the user's pack from the plugin (because a backend server can't do that).

If I instead run WorldResourcePacks then that works but switching to another server resets it. Basically a permanently set pack using WorldResourcePacks is only valid for the server it is on.

So either:

  1. A permanent resource pack set by WorldResourcePack should be set permanent by the upstream BungeeResourcePack plugin.
  2. Or an API so I can interface with the BungeeResourcePack plugin to set a pack from a backend server.

My use case:

  • A Lobby with signs that a user can click to set different packs
  • Presently when they hit the sign, a command '/usepack packname' is sent. This won't reach the bungeecord plugin as its generated by the backend server, but installing WorldResourcePack will allow it, but only for that server for the moment (I have some bungeecord vanilla servers so I can't install WorldResourcePack on all of them and need it done by the proxy server).

[VelocityResourcepacks] NoSuchMethodError when using Velocity 1.1.0 #265 or newer

VelocityResourcepacks 1.8.2 works with Velocity 1.1.0 up to build #264, any newer version results in the error below.
I tried using VelocityResourcepacks dev build 1.8.3 #356 but it had the same outcome.

Full Log

[19:34:31] [main/INFO]: Booting up Velocity 1.1.0-SNAPSHOT (git-cfb91046-b276)...
[19:34:32] [main/INFO]: Connections will use NIO channels, Java 11 compression, Java ciphers
[19:34:32] [main/INFO]: Loading plugins...
[19:34:32] [main/INFO]: Loaded plugin velocityresourcepacks 1.8.3-SNAPSHOT (build 356) by Phoenix616
[19:34:32] [main/INFO]: Loaded 1 plugins
[19:34:32] [Velocity Event Executor - #0/INFO]: Loaded config.yml
[19:34:32] [Velocity Event Executor - #0/INFO]: Loaded players.conf
[19:34:32] [Velocity Event Executor - #0/INFO]: Debug level: INFO
[19:34:32] [Velocity Event Executor - #0/INFO]: Found locale en!
[19:34:32] [Velocity Event Executor - #0/INFO]: Loading packs:
[19:34:32] [Velocity Event Executor - #0/INFO]: globalpack - ... - ...
[19:34:32] [Velocity Event Executor - #0/INFO]: [DEBUG] {url=..., hash=..., format=6, version=null, restricted=false, permission=velocityresourcepacks.pack.globalpack, variants=null}
[19:34:32] [Velocity Event Executor - #0/INFO]: Empty pack - http://cdn.moep.tv/files/Empty.zip - 01517226212d27586ea0c5d6aff1aa5492dd2484
[19:34:32] [Velocity Event Executor - #0/INFO]: Loading global assignment...
[19:34:32] [Velocity Event Executor - #0/INFO]: [DEBUG] Pack: globalpack
[19:34:32] [Velocity Event Executor - #0/INFO]: [DEBUG] Send delay: 20
[19:34:32] [Velocity Event Executor - #0/INFO]: [DEBUG] Loaded PackAssignment{name=global, pack=globalpack, secondaries=[], sendDelay=20}
[19:34:32] [Velocity Event Executor - #0/INFO]: [DEBUG] No server assignments defined!
[19:34:32] [Velocity Event Executor - #0/INFO]: [DEBUG] Stored packs override assignments: false
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: Exception in thread "Velocity Task Scheduler - #0" java.lang.NoSuchMethodError: 'net.kyori.adventure.text.TextComponent$Builder net.kyori.adventure.text.TextComponent.builder(java.lang.String)'
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.libs.minedown.adventure.MineDownParser.appendValue(MineDownParser.java:293)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.libs.minedown.adventure.MineDownParser.appendValue(MineDownParser.java:288)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.libs.minedown.adventure.MineDownParser.parse(MineDownParser.java:272)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.libs.minedown.adventure.MineDown.toComponent(MineDown.java:130)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.libs.minedown.adventure.MineDown.parse(MineDown.java:112)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.VelocityResourcepacks.getComponents(VelocityResourcepacks.java:543)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.VelocityResourcepacks.sendMessage(VelocityResourcepacks.java:640)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.velocity.VelocityResourcepacks.sendMessage(VelocityResourcepacks.java:635)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at de.themoep.resourcepacksplugin.core.PackManager.lambda$generateHashes$0(PackManager.java:916)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$0(VelocityScheduler.java:185)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[19:34:32] [Velocity Task Scheduler - #0/ERROR]: 	at java.base/java.lang.Thread.run(Thread.java:832)
[19:34:32] [Netty NIO Boss #0/INFO]: Listening on /[0:0:0:0:0:0:0:0]:25577
[19:34:32] [main/INFO]: Done (0.91s)!

Config

debug: true
default-language: en
disable-metrics: false
autogeneratehashes: true
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 30
packs:
  globalpack:
    url: ...
    hash: ...
    format: 6
empty:
  url: http://cdn.moep.tv/files/Empty.zip
  hash: 01517226212d27586ea0c5d6aff1aa5492dd2484
global:
  pack: globalpack
  send-delay: 20

Bungee logging is extremely verbose and clutters up console output

A small snippet from server startup and a few server changes:

13:07:19 [INFO] Enabled plugin reconnect_yaml version git:reconnect_yaml:1.13-SNAPSHOT:771f173:1401 by SpigotMC
13:07:19 [INFO] [BungeeResourcepacks] Registering ResourcePackSendPacket...
13:07:19 [INFO] [BungeeResourcepacks] BungeeCord 1.9.4+ (404) detected!
13:07:19 [INFO] [BungeeResourcepacks] Found mapping for 1.8+
13:07:19 [INFO] [BungeeResourcepacks] Found mapping for 1.9+
13:07:19 [INFO] [BungeeResourcepacks] Found mapping for 1.12+
13:07:19 [INFO] [BungeeResourcepacks] Found mapping for 1.12.1+
13:07:19 [INFO] [BungeeResourcepacks] Found mapping for 1.13+
13:07:20 [INFO] [BungeeResourcepacks] Loading config!
13:07:20 [INFO] [BungeeResourcepacks] Debug level: INFO
13:07:20 [INFO] [BungeeResourcepacks] Found locale en!
13:07:20 [INFO] [BungeeResourcepacks] Loading packs:
13:07:20 [INFO] [BungeeResourcepacks] minecraft - https://<snip>.zip - <snip>
13:07:20 [INFO] [BungeeResourcepacks] Empty pack - http://cdn.moep.tv/files/Empty.zip - 01517226212d27586ea0c5d6aff1aa5492dd2484
13:07:20 [INFO] [BungeeResourcepacks] Loading global assignment...
13:07:20 [INFO] [BungeeResourcepacks] Pack: minecraft
13:07:20 [INFO] [BungeeResourcepacks] Send delay: 20
13:07:20 [INFO] [BungeeResourcepacks] Loaded global assignment
13:07:20 [INFO] [BungeeResourcepacks] PackAssignment{name=global, pack=minecraft, secondaries=[], sendDelay=20}
13:07:20 [INFO] [BungeeResourcepacks] No server assignments defined!
13:07:20 [INFO] Enabled plugin BungeeResourcepacks version 1.6.19-SNAPSHOT (build 261) by Phoenix616
...
14:01:22 [INFO] [Adam_Ant] <-> DownstreamBridge <-> [survival] has disconnected
14:09:35 [INFO] 2Tiix executed command: /server creative
14:09:35 [INFO] [2Tiix] <-> ServerConnector [creative] has connected
14:09:35 [INFO] [2Tiix] <-> DownstreamBridge <-> [survival] has disconnected
14:09:36 [INFO] [BungeeResourcepacks] 2Tiix matched global assignment
14:12:42 [INFO] 2Tiix executed command: /server survival
14:12:42 [INFO] [2Tiix] <-> ServerConnector [survival] has connected
14:12:42 [INFO] [2Tiix] <-> DownstreamBridge <-> [creative] has disconnected
14:12:43 [INFO] [BungeeResourcepacks] 2Tiix matched global assignment
14:14:53 [INFO] 2Tiix executed command: /server creative
14:14:53 [INFO] [2Tiix] <-> ServerConnector [creative] has connected
14:14:53 [INFO] [2Tiix] <-> DownstreamBridge <-> [survival] has disconnected
14:14:54 [INFO] [BungeeResourcepacks] 2Tiix matched global assignment
14:15:07 [INFO] 2Tiix executed command: /server survival
14:15:07 [INFO] [2Tiix] <-> ServerConnector [survival] has connected
14:15:08 [INFO] [2Tiix] <-> DownstreamBridge <-> [creative] has disconnected
14:15:09 [INFO] [BungeeResourcepacks] 2Tiix matched global assignment
17:53:44 [INFO] [/88.98.85.49:51076] <-> InitialHandler has connected
17:53:45 [INFO] [frebib] <-> ServerConnector [survival] has connected
17:53:46 [INFO] [BungeeResourcepacks] frebib matched global assignment
17:53:46 [INFO] [BungeeResourcepacks] Send pack minecraft (https://<snip>.zip) to frebib

I feel like most of this should be made at FINE or FINER levels so it only ends up in the log file instead of the console. Other plugins do not spam the output as much as this. If changing the default is not preferable then at least a configurable option would be nice because most of this is just noise :)

BungeeResourcepacks on 1.16.1: Still getting kicked from proxy when using /usepack (now a different error)

Waterfall build: 1.16-R0.2-SNAPSHOT:54d1f4a:360
BungeeResourcepacks version: 1.8.0-SNAPSHOT (build 317)

java.lang.NoClassDefFoundError: net/md_5/bungee/api/chat/hover/content/Content
at de.themoep.resourcepacksplugin.bungee.libs.minedown.Replacer.replaceInContents(Replacer.java:286) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.Replacer.replaceIn(Replacer.java:219) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.Replacer.replaceIn(Replacer.java:186) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.MineDown.toComponent(MineDown.java:123) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.MineDown.parse(MineDown.java:105) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.getComponents(BungeeResourcepacks.java:683) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.sendMessage(BungeeResourcepacks.java:753) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.sendMessage(BungeeResourcepacks.java:748) ~[?:?]
at de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor.sendMessage(PluginCommandExecutor.java:125) ~[?:?]
at de.themoep.resourcepacksplugin.core.commands.UsePackCommandExecutor.run(UsePackCommandExecutor.java:102) ~[?:?]
at de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor.execute(PluginCommandExecutor.java:103) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.ForwardingCommand.execute(ForwardingCommand.java:41) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.dispatchCommand(PluginManager.java:197) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.api.plugin.PluginManager.dispatchCommand(PluginManager.java:148) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.connection.UpstreamBridge.handle(UpstreamBridge.java:153) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.protocol.packet.Chat.handle(Chat.java:76) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.netty.HandlerBoss.channelRead(HandlerBoss.java:105) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]

BadPacket ID, are mods in use!? - BungeeCord incompatibility

Hi, your plugin is causing this error on BungeeCord:

[HyperTv] <-> DownstreamBridge <-> [lobby-1] - bad packet ID, are mods in use!? Did not read all bytes from packet class de.themoep.resourcepacksplugin.bungee.packets.ResourcePackSendPacket 58 Protocol GAME Direction TO_CLIENT

(I am not having this issue because i don't use your plugin, this was reported by another person and i reported it for him)

usepack: wrong messages if no valid package found

I use BungeeResourcepacks. If a player use the "/usepack" command and no valid resourcepacks are defined for here client version, the player get the message "already-in-use".

Note that this message is only useful, if:

  • he already has got this package via the plugin ("/usepack" or other)
  • he installed this package as client resourcepack too

BungeeResourcepacks 1.5.4 crashes clients attempting to connect to 1.7 servers

The latest release, which added the support to 1.9 clients, also causes players connecting to any 1.7 server under Bungeecord to be kicked with the reason "Internal Server Error", throwing this exception:

Failed to handle packet for [IP]
org.bukkit.plugin.messaging.ChannelNameTooLongException: Attempted to send a Plugin Message to a channel that was too large. The maximum length a channel may be is 16 chars (attempted 19 - 'BungeeResourcepacks.

This could be easily fixed by changing the plugin's name in bungee.yml into something with less than 16 chars, for example "BRP"

Plugin sends empty pack instead of the assigned pack

I'm trying to make the plugin send a different resource pack depending on the dimension the player is in, so I set the "worlds" setting in the YML to

global: pack: overworldpack send-delay: 1 worlds: world: pack: overworldpack world_nether: pack: netherpack world_the_end: pack: endpack

I logged into the server, and absolutely nothing happened, not even when changing my dimension. I can load the packs using commands just fine, but when I change my dimension, the pack first unloads, then loads the empty pack. Do I have it set up improperly?

Resource packs not loading

1.8.5 Used Version

Config

# 
# Default language
debug: true
default-language: en
disable-metrics: false
autogeneratehashes: true
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 30
empty:
 url: http://cdn.moep.tv/files/Empty.zip
 hash: 01517226212d27586ea0c5d6aff1aa5492dd2484
global:
 send-delay: 10
 secondary:
 - animation
 pack: tweaks
worlds:
 lobby:
   pack: lobbypack
 minigame:
   pack: gamepack
   regex: minigame_.*
packs:
 lobbypack:
   url: http://example.com/lobbyresourcepack.zip
   hash: abcdef012345678abcdef012345678abcdef0123
   format: 1
   version: '1.8'
   restricted: false
   permission: worldresourcepacks.pack.lobbypack
 gamepack:
   restricted: false
   permission: worldresourcepacks.pack.gamepack
   variants:
   - url: http://example.com/minigameresourcepack_1_15.zip
     hash: 012345678abcdef012345678abcdef012345678a
     format: null
     version: '1.15'
     restricted: false
     permission: worldresourcepacks.pack.gamepack-variant-1
     type: null
     variants: null
   - url: http://example.com/minigameresourcepack_1_12.zip
     hash: 012345678abcdef01234567dddcdef012345678a
     format: null
     version: '1.12'
     restricted: false
     permission: worldresourcepacks.pack.gamepack-variant-2
     type: null
     variants: null
 tweaks:
   url: https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip
   hash: 4e24a410c924ac94ec2b71dca77c590c3e35d2e3
   restricted: false
   permission: resourcepacksplugin.pack.tweaks
 animation:
   url: https://download.mc-packs.net/pack/6425cb0bb71baf3540f64d13eebf9da1730e80ff.zip
   hash: 6425cb0bb71baf3540f64d13eebf9da1730e80ff
   restricted: false
   permission: resourcepacksplugin.pack.animation

Environment description

Full Log

[13:34:05] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[13:34:05] [main/WARN]: Couldn't get pack info for: net.minecraft.server.packs.ResourceNotFoundException: 'pack.mcmeta' in ResourcePack '.\world\datapacks\VanillaTweaks_d941067_UNZIP_ME.zip'
[13:34:05] [main/INFO]: Reloading ResourceManager: Default, terralith-v1-3a.zip, new-in-town-by-kanokarob-v2-7-2.zip, bukkit, VanillaTweaks_c234012.zip
[13:34:06] [Worker-Main-5/INFO]: Loaded 7 recipes
[13:34:07] [Server thread/INFO]: Starting minecraft server version 1.17.1
[13:34:07] [Server thread/INFO]: Loading properties
[13:34:07] [Server thread/INFO]: This server is running Paper version git-Paper-169 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 25cd8ab)
[13:34:07] [Server thread/INFO]: Debug logging is disabled
[13:34:07] [Server thread/INFO]: Server Ping Player Sample Count: 12
[13:34:07] [Server thread/INFO]: Using 4 threads for Netty based IO
[13:34:07] [Server thread/WARN]: You specified a resource pack without providing a sha1 hash. Pack will be updated on the client only if you change the name of the pack.
[13:34:07] [Server thread/INFO]: Default game type: SURVIVAL
[13:34:07] [Server thread/INFO]: Generating keypair
[13:34:07] [Server thread/INFO]: Starting Minecraft server on *:25565
[13:34:07] [Server thread/INFO]: Using default channel type
[13:34:08] [Server thread/INFO]: [EnchantableBlocks] Loading 1 libraries... please wait
[13:34:08] [Server thread/INFO]: [EnchantableBlocks] Loaded library C:\Users\redbo\Desktop\Minecraft Servers\Paper 1.17\libraries\it\unimi\dsi\fastutil\8.5.4\fastutil-8.5.4.jar
[13:34:08] [Server thread/INFO]: [EnchantableBlocks] Loaded library C:\Users\redbo\Desktop\Minecraft Servers\Paper 1.17\libraries\it\unimi\dsi\fastutil-extra\8.5.4\fastutil-extra-8.5.4.jar
[13:34:08] [Server thread/INFO]: [EnchantableBlocks] Loaded library C:\Users\redbo\Desktop\Minecraft Servers\Paper 1.17\libraries\it\unimi\dsi\fastutil-core\8.5.4\fastutil-core-8.5.4.jar
[13:34:08] [Server thread/INFO]: [PlayerHeads] Loading PlayerHeads v5.2.12-SNAPSHOT
[13:34:08] [Server thread/INFO]: [PlayerHeads] Internal plugin locale: 
[13:34:08] [Server thread/INFO]: [PlayerHeads] Environment locale: en_US / en-US
[13:34:08] [Server thread/INFO]: [PlayerHeads] [STDOUT] Trying provider: craftbukkit_1_16
[13:34:08] [Server thread/WARN]: Nag author(s): '[meiskam, zand, crashdemons]' of 'PlayerHeads' about their usage of System.out/err.print. Please use your plugin's logger instead (JavaPlugin#getLogger).
[13:34:08] [Server thread/INFO]: [dynmap] Loading dynmap v3.2-beta-2-483
[13:34:08] [Server thread/INFO]: [dynmap] version=git-Paper-169 (MC: 1.17.1)
[13:34:08] [Server thread/INFO]: [dynmap] Mod Support API available
[13:34:08] [Server thread/INFO]: [Enchantments_plus] Loading Enchantments_plus v4.0.1
[13:34:08] [Server thread/INFO]: [SMPtweaks] Loading SMPtweaks v1.0.9-beta
[13:34:08] [Server thread/INFO]: [Magic] Loading Magic v9.4.4-e8def57
[13:34:09] [Server thread/INFO]: [Magic] Loading modern compatibility layer for server version 1.17.1
[13:34:09] [Server thread/INFO]: [Magic] Async chunk loading API found
[13:34:09] [Server thread/INFO]: [ServerMinimap] Loading ServerMinimap v0.7.24
[13:34:09] [Server thread/INFO]: [WorldResourcepacks] Loading WorldResourcepacks v1.8.5 (build 417)
[13:34:09] [Server thread/INFO]: [DiscordSRV] Loading DiscordSRV v1.23.0
[13:34:09] [Server thread/INFO]: [Nova] Loading Nova v0.4
[13:34:09] [Server thread/INFO]: [EnchantableBlocks] Loading EnchantableBlocks v3.0.0
[13:34:09] [Server thread/INFO]: [VehicleStorage] Loading VehicleStorage v1.1.0
[13:34:09] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[13:34:09] [Server thread/INFO]: [Magic] Enabling Magic v9.4.4-e8def57
[13:34:09] [Server thread/INFO]: [Magic] EffectLib initialized
[13:34:10] [Server thread/ERROR]: [[STDERR] ] org.bukkit.craftbukkit.v1_17_R1.legacy.CraftLegacy Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[13:34:12] [Server thread/INFO]: [Magic] Loaded 0 attributes
[13:34:13] [Server thread/INFO]: [Magic] Wand crafting is enabled
[13:34:13] [Server thread/INFO]: [Magic] Skin-based spell icons disabled
[13:34:13] [Server thread/INFO]: [Magic] Registered attributes: [target_fall_distance, luck, target_hunger, location_x, location_y, target_mana, attack_damage, bowpower, degrees, knockback_resistance, seconds, location_z, humidity, target_air, health_max, target_luck, level, minutes, target_armor, fall_distance, hunger, target_health_max, moon, armor, air_max, mana_max, bowpull, damage, damage_dealt, weeks, epoch, air, temperature, target_mana_max, hours, health, target_temperature, target_air_max, movement_speed, play_time, mana, target_health, xp, target_location_x, target_humidity, days, pi, target_location_y, target_knockback_resistance, target_location_z, time]
[13:34:13] [Server thread/INFO]: [Magic] Loaded 0 customized worlds
[13:34:13] [Server thread/INFO]: [Magic] Loaded 12 effect lists
[13:34:13] [Server thread/INFO]: [Magic] Loaded 1401 items
[13:34:13] [Server thread/INFO]: [Magic] Loaded 175 wands
[13:34:13] [Server thread/INFO]: [Magic] Loaded 2 kits
[13:34:13] [Server thread/INFO]: [Magic] Loaded 10 classes
[13:34:13] [Server thread/INFO]: [Magic] Loaded 3 classes
[13:34:13] [Server thread/INFO]: [Magic] Loaded 66 mob templates
[13:34:13] [Server thread/INFO]: [Magic] Loaded 7 automata templates
[13:34:13] [Server thread/INFO]: [Magic] Activated BStats
[13:34:13] [Server thread/INFO]: [Magic] MobArena not found
[13:34:13] [Server thread/INFO]: [Magic] LibsDisguises not found, magic mob disguises will not be available
[13:34:13] [Server thread/INFO]: Resource pack configured in server.properties, Magic not using RP from config.yml
[13:34:13] [Server thread/INFO]: [VehicleStorage] Enabling VehicleStorage v1.1.0
[13:34:13] [Server thread/INFO]: Preparing level "world"
[13:34:14] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[13:34:16] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[13:34:16] [Worker-Main-7/INFO]: Preparing spawn area: 0%
[13:34:16] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[13:34:16] [Worker-Main-6/INFO]: Preparing spawn area: 0%
[13:34:16] [Server thread/INFO]: Time elapsed: 2001 ms
[13:34:16] [Server thread/INFO]: Preparing start region for dimension minecraft:the_nether
[13:34:17] [Worker-Main-3/INFO]: Preparing spawn area: 0%
[13:34:17] [Worker-Main-8/INFO]: Preparing spawn area: 0%
[13:34:17] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[13:34:17] [Server thread/INFO]: Time elapsed: 1141 ms
[13:34:17] [Server thread/INFO]: Preparing start region for dimension minecraft:the_end
[13:34:19] [Worker-Main-4/INFO]: Preparing spawn area: 0%
[13:34:19] [Worker-Main-4/INFO]: Preparing spawn area: 0%
[13:34:19] [Worker-Main-4/INFO]: Preparing spawn area: 0%
[13:34:19] [Worker-Main-4/INFO]: Preparing spawn area: 0%
[13:34:19] [Worker-Main-2/INFO]: Preparing spawn area: 0%
[13:34:19] [Server thread/INFO]: Time elapsed: 2164 ms
[13:34:19] [Server thread/INFO]: [PlayerHeads] Enabling PlayerHeads v5.2.12-SNAPSHOT
[13:34:19] [Server thread/INFO]: [PlayerHeads] NoCheatPlus not detected.
[13:34:19] [Server thread/INFO]: [PlayerHeads] Current plugin compatibility version: craftbukkit 1.16
[13:34:19] [Server thread/INFO]: [dynmap] Enabling dynmap v3.2-beta-2-483
[13:34:20] [Server thread/INFO]: [dynmap] Added 258 custom biome mappings
[13:34:20] [Server thread/INFO]: [dynmap] Using Bukkit Permissions (superperms) for access control
[13:34:20] [Server thread/INFO]: [dynmap] Web interface permissions only available for online users
[13:34:20] [Server thread/INFO]: [dynmap] Mod Support processing completed
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 25 shaders.
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 82 perspectives.
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 22 lightings.
[13:34:21] [Server thread/INFO]: [dynmap] Starting enter/exit processing
[13:34:21] [Dynmap Render Thread/INFO]: [dynmap] Finish marker initialization
[13:34:21] [Server thread/INFO]: [dynmap] Web server started on address 0.0.0.0:8123
[13:34:21] [Server thread/INFO]: [dynmap] version 3.2-beta-2-483 is enabled - core version 3.2-beta-2-483
[13:34:21] [Server thread/INFO]: [dynmap] For support, visit https://reddit.com/r/Dynmap or our Discord at https://discord.gg/s3rd5qn
[13:34:21] [Server thread/INFO]: [dynmap] To report or track bugs, visit https://github.com/webbukkit/dynmap/issues
[13:34:21] [Server thread/INFO]: [dynmap] If you'd like to donate, please visit https://www.patreon.com/dynmap or https://ko-fi.com/michaelprimm
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 3 maps of world 'world'.
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 3129 pending tile renders for world 'world'
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 2 maps of world 'world_nether'.
[13:34:21] [Server thread/INFO]: [dynmap] Loaded 2 maps of world 'world_the_end'.
[13:34:21] [Server thread/INFO]: [dynmap] Enabled
[13:34:21] [Server thread/INFO]: [Enchantments_plus] Enabling Enchantments_plus v4.0.1
[13:34:21] [Server thread/INFO]: [Enchantments_plus] Loading magic compatibillity file, if this step fails you should notify the devs about this.
[13:34:22] [Server thread/INFO]: [Enchantments_plus] Enchantments+ v4.0.1 started up in 261ms
[13:34:22] [Server thread/INFO]: [SMPtweaks] Enabling SMPtweaks v1.0.9-beta
[13:34:22] [Server thread/INFO]: [SMPtweaks] Paper events will be used in order to improve performance
[13:34:22] [Server thread/INFO]: [com.zaxxer.hikari.HikariDataSource] HikariPool-1 - Starting...
[13:34:22] [Server thread/INFO]: [com.zaxxer.hikari.HikariDataSource] HikariPool-1 - Start completed.
[13:34:22] [Server thread/INFO]: [SMPtweaks] Up and running! Startup took 235ms
[13:34:22] [Server thread/INFO]: [ServerMinimap] Enabling ServerMinimap v0.7.24
[13:34:22] [Server thread/INFO]: [ServerMinimap] Created Minimap with ID 0. Use /give <name> MAP 1 0 to get the map as item. (Vanilla command)
[13:34:22] [Server thread/INFO]: [ServerMinimap] Alternative command: /minimap (Plugin command)
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Enabling WorldResourcepacks v1.8.5 (build 417)
[13:34:22] [Server thread/WARN]: [WorldResourcepacks] You seem to have defined a resource-pack in your server.properties file, if you experience issues then please remove it and configure the pack via this plugin's config directly as it works better when it can completely handle the whole sending itself.
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Loading config!
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Debug level: INFO
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Found locale en
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Loading packs:
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] lobbypack - http://example.com/lobbyresourcepack.zip - abcdef012345678abcdef012345678abcdef0123
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] {url=http://example.com/lobbyresourcepack.zip, hash=abcdef012345678abcdef012345678abcdef0123, format=1, version=1.8, restricted=false, permission=worldresourcepacks.pack.lobbypack, type=null, variants=null}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] gamepack - 2 variants
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] {url=null, hash=null, format=null, version=null, restricted=false, permission=worldresourcepacks.pack.gamepack, type=null, variants=[{url=http://example.com/minigameresourcepack_1_15.zip, hash=012345678abcdef012345678abcdef012345678a, format=null, version=1.15, restricted=false, permission=worldresourcepacks.pack.gamepack-variant-1, type=null, variants=null}, {url=http://example.com/minigameresourcepack_1_12.zip, hash=012345678abcdef01234567dddcdef012345678a, format=null, version=1.12, restricted=false, permission=worldresourcepacks.pack.gamepack-variant-2, type=null, variants=null}]}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] tweaks - https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip - 4e24a410c924ac94ec2b71dca77c590c3e35d2e3
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] {url=https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip, hash=4e24a410c924ac94ec2b71dca77c590c3e35d2e3, format=null, version=null, restricted=false, permission=resourcepacksplugin.pack.tweaks, type=null, variants=null}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] animation - https://download.mc-packs.net/pack/6425cb0bb71baf3540f64d13eebf9da1730e80ff.zip - 6425cb0bb71baf3540f64d13eebf9da1730e80ff
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] {url=https://download.mc-packs.net/pack/6425cb0bb71baf3540f64d13eebf9da1730e80ff.zip, hash=6425cb0bb71baf3540f64d13eebf9da1730e80ff, format=null, version=null, restricted=false, permission=resourcepacksplugin.pack.animation, type=null, variants=null}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Empty pack - http://cdn.moep.tv/files/Empty.zip - 01517226212d27586ea0c5d6aff1aa5492dd2484
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Loading global assignment...
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Pack: tweaks
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Secondary packs:
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] - animation
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Send delay: 10
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Loaded PackAssignment{name=global, pack=tweaks, secondaries=[animation], sendDelay=10}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Loading world assignments...
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Loading assignment for world lobby...
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Pack: lobbypack
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Loaded PackAssignment{name=lobby, pack=lobbypack, secondaries=[], sendDelay=-1}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] Loading assignment for world minigame...
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Regex: minigame_.*
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Pack: gamepack
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Loaded PackAssignment{name=minigame, pack=gamepack, secondaries=[], sendDelay=-1, regex=minigame_.*}
[13:34:22] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Stored packs override assignments: false
[13:34:22] [Server thread/WARN]: [WorldResourcepacks] Could not get version of the server! (1.17.1-R0.1-SNAPSHOT/1.17.1)
[13:34:22] [Server thread/WARN]: java.lang.ClassNotFoundException: net.minecraft.server.v1_17_R1.EntityPlayer
[13:34:22] [Server thread/WARN]: 	at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:146)
[13:34:22] [Server thread/WARN]: 	at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103)
[13:34:22] [Server thread/WARN]: 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
[13:34:22] [Server thread/WARN]: 	at java.base/java.lang.Class.forName0(Native Method)
[13:34:22] [Server thread/WARN]: 	at java.base/java.lang.Class.forName(Class.java:375)
[13:34:22] [Server thread/WARN]: 	at WorldResourcepacks (1).jar//de.themoep.resourcepacksplugin.bukkit.internal.InternalHelper_fallback.<init>(InternalHelper_fallback.java:53)
[13:34:22] [Server thread/WARN]: 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[13:34:22] [Server thread/WARN]: 	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
[13:34:22] [Server thread/WARN]: 	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[13:34:22] [Server thread/WARN]: 	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[13:34:22] [Server thread/WARN]: 	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[13:34:22] [Server thread/WARN]: 	at WorldResourcepacks (1).jar//de.themoep.resourcepacksplugin.bukkit.WorldResourcepacks.onEnable(WorldResourcepacks.java:170)
[13:34:22] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263)
[13:34:22] [Server thread/WARN]: 	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370)
[13:34:22] [Server thread/WARN]: 	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:500)
[13:34:22] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugin(CraftServer.java:529)
[13:34:22] [Server thread/WARN]: 	at org.bukkit.craftbukkit.v1_17_R1.CraftServer.enablePlugins(CraftServer.java:443)
[13:34:22] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.loadWorld(MinecraftServer.java:639)
[13:34:22] [Server thread/WARN]: 	at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:306)
[13:34:22] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1126)
[13:34:22] [Server thread/WARN]: 	at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[13:34:22] [Server thread/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:831)
[13:34:22] [Server thread/INFO]: [DiscordSRV] Enabling DiscordSRV v1.23.0
[13:34:22] [Server thread/INFO]: [Nova] Enabling Nova v0.4
[13:34:22] [Server thread/INFO]: [Nova] [AdvancementAPI] Generating advancements
[13:34:22] [Server thread/WARN]: Couldn't get pack info for: net.minecraft.server.packs.ResourceNotFoundException: 'pack.mcmeta' in ResourcePack '.\world\datapacks\VanillaTweaks_d941067_UNZIP_ME.zip'
[13:34:22] [Server thread/INFO]: Reloading ResourceManager: Default, terralith-v1-3a.zip, new-in-town-by-kanokarob-v2-7-2.zip, bukkit, VanillaTweaks_c234012.zip
[13:34:23] [Server thread/INFO]: Loaded 7 recipes
[13:34:23] [Log4j2-TF-1-AsyncLogger[AsyncContext@659e0bfd]-1/INFO]: [DiscordSRV] [JDA] Login Successful!
[13:34:24] [Log4j2-TF-1-AsyncLogger[AsyncContext@659e0bfd]-1/INFO]: [DiscordSRV] [JDA] Connected to WebSocket
[13:34:24] [Server thread/INFO]: [EnchantableBlocks] Enabling EnchantableBlocks v3.0.0
[13:34:24] [Server thread/INFO]: Running delayed init tasks
[13:34:24] [Server thread/INFO]: [Magic] Vault not found, 'currency' cost types unavailable
[13:34:24] [Server thread/INFO]: [Magic] Registered currencies: item,mana,xp,health,currency,sp,levels,hunger
[13:34:24] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Generating hashes...
[13:34:24] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Downloading lobbypack...
[13:34:24] [Log4j2-TF-1-AsyncLogger[AsyncContext@659e0bfd]-1/INFO]: [DiscordSRV] [JDA] Finished Loading!
[13:34:24] [pool-11-thread-1/INFO]: [DiscordSRV] DiscordSRV is up-to-date. (ae26c8fa7a85120ccb1cf9bc46d8de316c1a5db8)
[13:34:24] [Craft Scheduler Thread - 2/ERROR]: [WorldResourcepacks] Could not load lobbypack! http://example.com/lobbyresourcepack.zip
[13:34:24] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Downloading gamepack-variant-1...
[13:34:24] [DiscordSRV - Initialization/INFO]: [DiscordSRV] Found server G:Redboy's servers(870701332443570186)
[13:34:24] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:general(870701332443570189)
[13:34:24] [DiscordSRV - Initialization/INFO]: [DiscordSRV] - TC:console(870701589537624155)
[13:34:24] [DiscordSRV - Initialization/INFO]: [DiscordSRV] Console forwarding assigned to channel TC:console(870701589537624155)
[13:34:24] [DiscordSRV - Initialization/INFO]: [DiscordSRV] Enabling dynmap hook
[13:34:24] [DiscordSRV - Initialization/INFO]: [DiscordSRV] No chat plugin hooks enabled
[13:34:25] [Craft Scheduler Thread - 0/INFO]: You're running an outdated version of Nova.
[13:34:25] [Craft Scheduler Thread - 0/INFO]: Please download the latest version at https://spigotmc.org/resources/93648.
[13:34:25] [Craft Scheduler Thread - 2/ERROR]: [WorldResourcepacks] Could not load gamepack-variant-1! http://example.com/minigameresourcepack_1_15.zip
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Downloading gamepack-variant-2...
[13:34:25] [Craft Scheduler Thread - 2/ERROR]: [WorldResourcepacks] Could not load gamepack-variant-2! http://example.com/minigameresourcepack_1_12.zip
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Downloading tweaks...
[13:34:25] [Server thread/INFO]: [Magic] Loaded 541 spells
[13:34:25] [Server thread/INFO]: [Magic] Loaded 12 progression paths
[13:34:25] [Server thread/INFO]: [Magic] Loaded 16 crafting recipes
[13:34:25] [Server thread/INFO]: [Magic] LogBlock not found
[13:34:25] [Server thread/INFO]: [Magic] Factions not found
[13:34:25] [Server thread/INFO]: [Magic] WorldGuard not found, region protection and pvp checks will not be used.
[13:34:25] [Server thread/INFO]: [Magic] Towny not found, region protection and pvp checks will not be used.
[13:34:25] [Server thread/INFO]: [Magic] Lockette nor LockettePro found, will not integrate.
[13:34:25] [Server thread/INFO]: [Magic] GriefPrevention not found, claim protection will not be used.
[13:34:25] [Server thread/INFO]: [Magic] NoCheatPlus not found, will not integrate.
[13:34:25] [Server thread/INFO]: [Magic] dynmap found, integrating.
[13:34:25] [Server thread/INFO]: [Magic] Citizens not found, Magic trait unavailable.
[13:34:25] [Server thread/INFO]: [Magic] LightAPI not found, Light action will not work
[13:34:25] [Server thread/INFO]: [Magic] Loaded 0 arenas
[13:34:25] [Server thread/INFO]: [Magic] Finished loading configuration
[13:34:25] [Server thread/INFO]: Done (17.877s)! For help, type "help"
[13:34:25] [Server thread/INFO]: Timings Reset
[13:34:25] [Server thread/INFO]: [Magic] Loading image map data from imagemaps.yml
[13:34:25] [Server thread/INFO]: [Magic] Loaded 0 image maps
[13:34:25] [Server thread/INFO]: [Magic] Finished loading data.
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] SHA 1 hash of tweaks: 4e24a410c924ac94ec2b71dca77c590c3e35d2e3
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Downloading animation...
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] SHA 1 hash of animation: 6425cb0bb71baf3540f64d13eebf9da1730e80ff
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] Downloading empty...
[13:34:25] [Dynmap Render Thread/INFO]: [dynmap] Loading default resource pack
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] SHA 1 hash of empty: 01517226212d27586ea0c5d6aff1aa5492dd2484
[13:34:25] [Craft Scheduler Thread - 2/INFO]: [WorldResourcepacks] No hash changed!
[13:34:32] [User Authenticator #1/INFO]: UUID of player MyNameIsRedboy is 3a7d9cb1-89af-4407-9207-01766546d058
[13:34:33] [Server thread/INFO]: MyNameIsRedboy joined the game
[13:34:33] [Server thread/INFO]: MyNameIsRedboy[/127.0.0.1:59504] logged in with entity id 76 at ([world]-2759.92947719741, 100.0536935618521, 17046.518772946263)
[13:34:33] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] MyNameIsRedboy matched assignment global due to main pack
[13:34:33] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Send pack tweaks (https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip) to MyNameIsRedboy
[13:34:37] [Server thread/INFO]: MyNameIsRedboy lost connection: Please accept the custom resource pack
[13:34:37] [Server thread/INFO]: MyNameIsRedboy left the game
[13:35:39] [User Authenticator #2/INFO]: UUID of player MyNameIsRedboy is 3a7d9cb1-89af-4407-9207-01766546d058
[13:35:39] [Server thread/INFO]: MyNameIsRedboy joined the game
[13:35:39] [Server thread/INFO]: MyNameIsRedboy[/127.0.0.1:58340] logged in with entity id 334 at ([world]-2759.92947719741, 100.0536935618521, 17046.518772946263)
[13:35:40] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] MyNameIsRedboy matched assignment global due to main pack
[13:35:40] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Send pack tweaks (https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip) to MyNameIsRedboy
[13:35:41] [Server thread/WARN]: UUID of added entity already exists: EntityPig['Pig'/579, uuid='0c1fa99a-19af-4aa6-9ab0-4c8ad40e674c', l='ServerLevel[world]', x=-2819.17, y=65.00, z=17184.02, cpos=[-177, 1074], tl=487, v=false, rR=null]
[13:35:55] [Server thread/INFO]: MyNameIsRedboy lost connection: Disconnected
[13:35:55] [Server thread/INFO]: MyNameIsRedboy left the game
[13:37:03] [User Authenticator #3/INFO]: UUID of player MyNameIsRedboy is 3a7d9cb1-89af-4407-9207-01766546d058
[13:37:03] [Server thread/INFO]: MyNameIsRedboy joined the game
[13:37:03] [Server thread/INFO]: MyNameIsRedboy[/127.0.0.1:62477] logged in with entity id 667 at ([world]-2765.392209110397, 65.0, 17054.869244257203)
[13:37:04] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] MyNameIsRedboy matched assignment global due to main pack
[13:37:04] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Send pack tweaks (https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip) to MyNameIsRedboy
[13:37:08] [Server thread/INFO]: Disconnecting TextComponent{text='MyNameIsRedboy', siblings=[], style=Style{ color=null, bold=null, italic=null, underlined=null, strikethrough=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null, font=minecraft:default}} due to resource pack rejection
[13:37:08] [Server thread/INFO]: MyNameIsRedboy lost connection: Server requires a custom resource pack
[13:37:08] [Server thread/INFO]: MyNameIsRedboy left the game
[13:37:09] [User Authenticator #3/INFO]: UUID of player MyNameIsRedboy is 3a7d9cb1-89af-4407-9207-01766546d058
[13:37:10] [Server thread/INFO]: MyNameIsRedboy joined the game
[13:37:10] [Server thread/INFO]: MyNameIsRedboy[/127.0.0.1:62483] logged in with entity id 935 at ([world]-2765.392209110397, 65.0, 17054.869244257203)
[13:37:10] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] MyNameIsRedboy matched assignment global due to main pack
[13:37:10] [Server thread/INFO]: [WorldResourcepacks] [DEBUG] Send pack tweaks (https://download.mc-packs.net/pack/4e24a410c924ac94ec2b71dca77c590c3e35d2e3.zip) to MyNameIsRedboy

What other programs/plugins are you running?

(Plugins most likely not the cause)
DiscordSrv
Dynamap
Enchantableblocks
EnchantmentsPlus
Magic
Nova
Playerheads
ServerMinimap
SmpTweaks
VehicleStorage
WorldResourcepacks

What is happening?

When joining the game only one resource pack gets loaded

What did you expect to happen?

Both resource packs to get loaded when accepting server resource pack

Additional context

World resourcepack with other plugin compatibility

Hello I have seen your plugin download on spigot and have downloaded it to be used on my server, however I have restarted the server and I do not see the plugin folder. I have worlds made using the multiversecore plugin. Is there by any chance that it is not compatible with the multiverseCore plugin which is why the plugin file does not load?

Additional info: It’s a 1.16.3 Bukkit server
I do have viaversion also

Startup Error & DownstreamBridge Object

Hello!

To start off this is my startup error in bungee: http://pastebin.com/qT0y5S73

I have a bungee network with multiple servers, in this situation my issue is between these three PaperSpigot servers:

  • hub
  • games
  • survival

I have both BungeeResourcepacks installed and WorldResourcepacks.

Here are the configurations for all three:

The login to the games world and hub works fine (and survival too) - there are no errors thrown:

games

MarkehMe[/127.0.0.1:49068] logged in with entity id 4219045 at ([games]58.0, 75.0, 0.0)
[WorldResourcepacks] Send pack gameshub (http://xxxxx.net.au/textures/PlanetCraft-games-hub.zip) to MarkehMe

hub

UUID of player MarkehMe is d65e49f9-eb8f-4087-9004-c44216472905
MarkehMe[/180.181.100.94:48533] logged in with entity id 112 at ([hub]-48.65092091282099, 93.0, 0.41705329524693224)
[WorldResourcepacks] Send pack emptypack (http://xxxxx.net.au/textures/Empty.zip) to MarkehMe

However in my bungee console:

[INFO] [/180.xxx.xxx.xx:58119] <-> InitialHandler has connected
[INFO] [MarkehMe|/180.xxx.xxx.xx:58119] <-> ServerConnector [games] has connected
[SEVERE] [BungeeResourcepacks] Error while trying to get the UserConnection field from the DownstreamBridge object. Is the plugin up to date?
[INFO] [MarkehMe|/180.xxx.xxx.xx:58119] <-> ServerConnector [hub] has connected
[INFO] [/180.xxx.xxx.xx:58119|MarkehMe] <-> DownstreamBridge <-> [games] has disconnected
[SEVERE] [BungeeResourcepacks] Error while trying to get the UserConnection field from the DownstreamBridge object. Is the plugin up to date?

Now if I switch from my other worlds from say survival to hub (exact some configuration and texture pack as hub) it re-downloads the resource pack. Here is the log from my client: http://pastebin.com/4AAxpjKQ

Versions:

  • Paper version git-Paper-832 (MC: 1.10.2)
  • Waterfall version git:Waterfall-Bootstrap:1.10-SNAPSHOT:6c059bb:47
  • BungeeResourcepacks version 1.6.3
  • WorldResourcepacks version 1.6.2 (build #111)

Slow world switches?

Spigot 1.13.1 latest
WRP 1.6.19-b224
MV-Core 2.6.0-b738

Changing worlds seems quite a bit slower in 1.13.x than in 1.12.2, like from near instantaneous to over 10 seconds. Am I the only one with this experience, or is this a known issue? Assuming the latter, is it related to resourcepack loading? Is there anything to be done? I don't think the fault lies with WRP, but I don't know where else to ask.

My packs are approximately 30-72KB. Most of my worlds use a single pack, but even moving between those worlds takes much longer than in 1.12.2. I appreciate that MC loads the entire default pack every time, then compares/replaces anything provided by my packs.

Resource pack loading breaks player login with BungeeCord 1.12.1.

Waterfall dev 133 (BungeeCord 1.12.1) https://ci.destroystokyo.com/view/All/job/Waterfall/
Paper dev 1170 (Spigot 1.12.1) https://ci.destroystokyo.com/job/PaperSpigot/
BungeeResourcePack dev 198 https://ci.minebench.de/job/ResourcepacksPlugins/

@Phoenix616 Resource pack loading breaks player login with BungeeCord 1.12.1. Players who attempt to connect to the server on minecraft 1.12.1 get disconnected with an IndexOutOfBoundsException readerIndex / length exceeding exception. Removing the plugin, players are able to login fine again.

Some BungeeCord log errors, but not sure it is related to the connecting since it doesn't output for everyone. However login does break for everyone.

io.netty.handler.codec.DecoderException: Error decoding packet class ResourcePackSendPacket with contents:
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 33 8b 08 03                                     |3...            |
+--------+-------------------------------------------------+----------------+
	at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:68)
	at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:12)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:284)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:979)
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:403)
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:306)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: readerIndex(3) + length(1035) exceeds writerIndex(4): UnpooledSlicedByteBuf(ridx: 3, widx: 4, cap: 4/4, unwrapped: PooledUnsafeDirectByteBuf(ridx: 5, widx: 5, cap: 128))
	at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1396)
	at io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1383)
	at io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:850)
	at io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:858)
	at net.md_5.bungee.protocol.DefinedPacket.readString(DefinedPacket.java:36)
	at de.themoep.resourcepacksplugin.bungee.packets.ResourcePackSendPacket.read(ResourcePackSendPacket.java:86)
	at net.md_5.bungee.protocol.DefinedPacket.read(DefinedPacket.java:193)
	at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:46)
	... 23 more
io.netty.handler.codec.DecoderException: Error decoding packet class ResourcePackSendPacket with contents:
         +-------------------------------------------------+
         |  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f |
+--------+-------------------------------------------------+----------------+
|00000000| 33 8e 10 01                                     |3...            |
+--------+-------------------------------------------------+----------------+
	at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:68)
	at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:12)
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:88)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1334)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:979)
	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:403)
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:306)
	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IndexOutOfBoundsException: readerIndex(3) + length(2062) exceeds writerIndex(4): UnpooledSlicedByteBuf(ridx: 3, widx: 4, cap: 4/4, unwrapped: PooledUnsafeDirectByteBuf(ridx: 5, widx: 14, cap: 512))
	at io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1396)
	at io.netty.buffer.AbstractByteBuf.checkReadableBytes(AbstractByteBuf.java:1383)
	at io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:850)
	at io.netty.buffer.AbstractByteBuf.readBytes(AbstractByteBuf.java:858)
	at net.md_5.bungee.protocol.DefinedPacket.readString(DefinedPacket.java:36)
	at de.themoep.resourcepacksplugin.bungee.packets.ResourcePackSendPacket.read(ResourcePackSendPacket.java:86)
	at net.md_5.bungee.protocol.DefinedPacket.read(DefinedPacket.java:193)
	at net.md_5.bungee.protocol.MinecraftDecoder.decode(MinecraftDecoder.java:46)
	... 25 more

BungeeResourcePack disconnecting users on login due to resource pack packet exploitation attempt

Used Version

BungeeResourcepacks version 1.8.6-SNAPSHOT (build 433) by Phoenix616

Config

debug: false
default-language: en
disable-metrics: true
autogeneratehashes: true
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 0
empty:
 url: http://cdn.moep.tv/files/Empty.zip
 hash: 01517226212d27586ea0c5d6aff1aa5492dd2484
global:
 pack: rp
 send-delay: 20
packs:
 rp:
   url: https://censored/serverpack/rp.zip
   hash: 3ba45d7a7d236729009d4ede99c794e5f9afe556
   format: 7
   restricted: false
   permission: resourcepack.pack.rp

Environment description

Waterfall dev 445 (BungeeCord 1.17.1)
Purpur dev 1285 (Paper 1.17.1)

Full Log

BungeeCord log

[03:55:46] [Netty Worker IO Thread #1/INFO]: [/censored-ip:49302] <-> InitialHandler has connected
[03:55:47] [Netty Worker IO Thread #1/INFO]: [mibby|/censored-ip:49302] <-> ServerConnector [server] has connected
[03:55:51] [Netty Worker IO Thread #1/INFO]: [mibby] disconnected with: multiplayer.texturePrompt.failure.line1
[03:55:51] [Netty Worker IO Thread #1/INFO]: [/censored-ip:49302|mibby] -> UpstreamBridge has disconnected
[03:55:51] [Netty Worker IO Thread #1/INFO]: [/censored-ip:49302|mibby] <-> DownstreamBridge <-> [server] has disconnected
[03:56:15] [Netty Worker IO Thread #8/INFO]: [/censored-ip:49313] <-> InitialHandler has connected
[03:56:16] [Netty Worker IO Thread #8/INFO]: [mibby|/censored-ip:49313] <-> ServerConnector [server] has connected
[03:56:19] [Netty Worker IO Thread #8/INFO]: [mibby] disconnected with: multiplayer.texturePrompt.failure.line1
[03:56:19] [Netty Worker IO Thread #8/INFO]: [/censored-ip:49313|mibby] <-> DownstreamBridge <-> [server] has disconnected
[03:56:20] [Netty Worker IO Thread #8/INFO]: [/censored-ip:49313|mibby] -> UpstreamBridge has disconnected

Server log

[03:55:50] [Server thread/INFO]: Disconnecting TextComponent{text='mibby', siblings=[], style=Style{ color=null, bold=null, italic=null, underlined=null, strikethrough=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null, font=minecraft:default}} due to resource pack packet exploitation attempt
[03:55:51] [Server thread/INFO]: mibby lost connection: Server resource pack couldn't be applied
[03:55:51] [Craft Scheduler Thread - 10 - mcMMO/INFO]: [mcMMO] Aborting profile loading recovery for mibby - player logged out
[03:56:16] [User Authenticator #1/INFO]: UUID of player mibby is censored-uuid
[03:56:17] [Server thread/INFO]: mibby[/censored-ip:54515] logged in with entity id 887 at ([spawn]-21.33077406640026, 53.0, 5.738365860783118)
[03:56:19] [Server thread/INFO]: Disconnecting TextComponent{text='mibby', siblings=[], style=Style{ color=null, bold=null, italic=null, underlined=null, strikethrough=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null, font=minecraft:default}} due to resource pack packet exploitation attempt
[03:56:19] [Server thread/INFO]: mibby lost connection: Server resource pack couldn't be applied
[03:56:19] [Craft Scheduler Thread - 20 - mcMMO/INFO]: [mcMMO] Aborting profile loading recovery for mibby - player logged out
[03:57:37] [User Authenticator #2/INFO]: UUID of player mibby is censored-uuid
[03:57:38] [Server thread/INFO]: mibby[/censored-ip:52139] logged in with entity id 1269 at ([spawn]-21.33077406640026, 53.0, 5.738365860783118)
[03:57:41] [Server thread/INFO]: Disconnecting TextComponent{text='mibby', siblings=[], style=Style{ color=null, bold=null, italic=null, underlined=null, strikethrough=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null, font=minecraft:default}} due to resource pack packet exploitation attempt
[03:57:41] [Server thread/INFO]: mibby lost connection: Server resource pack couldn't be applied
[03:58:22] [User Authenticator #2/INFO]: UUID of player mibby is censored-uuid
[03:58:23] [Server thread/INFO]: mibby[/censored-ip:54723] logged in with entity id 1725 at ([spawn]-21.847427547861543, 53.0, 5.231136325337318)
[03:58:32] [Server thread/INFO]: Disconnecting TextComponent{text='mibby', siblings=[], style=Style{ color=null, bold=null, italic=null, underlined=null, strikethrough=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null, font=minecraft:default}} due to resource pack packet exploitation attempt
[03:58:32] [Server thread/INFO]: mibby lost connection: Server resource pack couldn't be applied

What other programs/plugins are you running?

What is happening?

Disconnect from server due to BungeeResourcepack triggering resource pack packet exploitation attempts. Even if your resource pack is disabled in the multiplayer menu, BRP sends a packet check to the client that disconnects the user.

What did you expect to happen?

Being able to login without being disconnected.

Additional context

Delaying the pack sending delays the disconnect but doesn't fix the problem. Only fully removing BungeeResourcepacks from BungeeCord fixes the problem.

Player logging out then back in loses pack.

Hi! Not sure if this is an issue or I am doing something wrong, but at the moment it appears when a player logs out from a world with a custom resource pack they lose it. Upon logging back in, the pack doesn't load properly and it uses the default minecraft textures. The only way to get it to reload is if I make them use a different pack then switch it back, or go to a world with a different resource pack then come back. Any help would be greatly appreciated. Thanks!

BungeeResourcePacks Causing Preview Snapshot Client to be Disconnected

Used Version

BungeeResoourcepacks dev build 361 and 386.

Config

debug: true
default-language: en
disable-metrics: true
autogeneratehashes: true
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 30
packs:
 scia:
   url: https://*.zip
   hash: d68f179e5366ba8d3e7a680a2ab6a45ab2879090
   format: 4
   restricted: false
   permission: bungeeresourcepacks.pack.lobbypack
 ra:
   url: https://*.zip
   hash: bfc64572e5343e4008b87af5049663d3054218aa
   restricted: false
   permission: bungeeresourcepacks.pack.lobbypack
empty:
 url: https://*.zip
 hash: 67256f3a3daa33bb8e4daa81e81a3631c5158fc7
global:
 secondary:
 - scia
 - ra
 send-delay: 20
servers:
 survival:
   pack: scia
   regex: Survival.*
 rts:
   pack: ra
   regex: RTS.*

Environment description

Waterfall with 1.17 support version. (link: PaperMC/Waterfall#582)

Full Log

No error log, simply disconnect info.

What other programs/plugins are you running?

I have a plugin created by myself to prevent snapshot clients use resourcepacks, here is the main part code.

   @EventHandler
   public void on(ResourcePackSelectEvent e){
       if(e.getStatus()==SUCCESS){
           if(proxyServer.getPlayer(e.getPlayerId()).getPendingConnection().getVersion()>=1073741829){
               e.setStatus(WRONG_VERSION);
           }
       }
   }

What is happening?

Preview snapshot client will disconnect when his potion effect is expired. I have no idea why this would happen. But after I remove brp, they can play normally. This happens on all downstream servers whether it is fabric or paper servers with viaversion-dev-21w03a.

Error when players try join with unsupported version

Used Version

1.8.3-SNAPSHOT (build 355)

Config

debug: false
default-language: en
disable-metrics: false
autogeneratehashes: true
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 30
packs:
 acidisland:
   url: https://github.com/andris155/TheOld-Crafters/blob/master/Savsziget_v2_1.16.2.zip?raw=true
   hash: 2f236ed8c68aae6882162a148d47267fd283b4ea
 oldspace:
   url: https://github.com/andris155/TheOld-Crafters/blob/master/OldSpace.zip?raw=true
   hash: b597c94557f8f6237c72940e1cb54e3c454cd483
empty:
 url: https://github.com/andris155/TheOld-Crafters/blob/master/SVR.zip?raw=true
 hash: 8932b583aea660973752712cdf158dd8d6b486c2
global:
 send-delay: 20
servers:
 savsziget:
   pack: acidisland
 oldspace:
   pack: oldspace

Environment description

OS: Ubuntu 20.04
OS language: English
Server version: Waterfall build 380

Full Log

[00:20:57] [Netty Worker IO Thread #16/INFO]: [MCI|/IP:36324] <-> ServerConnector [login] has connected
[00:20:57] [Netty Worker IO Thread #16/INFO]: [MCI] disconnected with: Ki lettél dobva, miközben csatlakozol a(z) login szerverhez: Outdated client! Supported version: 1.16.3
[00:20:57] [Netty Worker IO Thread #16/WARN] [global]: Error dispatching event PlayerDisconnectEvent(player=MCI) to listener de.themoep.resourcepacksplugin.bungee.listeners.DisconnectListener@9aa2002
java.lang.NullPointerException: null
	at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.sendPackInfo(BungeeResourcepacks.java:665) ~[?:?]
	at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.clearPack(BungeeResourcepacks.java:702) ~[?:?]
	at de.themoep.resourcepacksplugin.core.UserManager.onDisconnect(UserManager.java:97) ~[?:?]
	at de.themoep.resourcepacksplugin.bungee.listeners.DisconnectListener.onPlayerDisconnect(DisconnectListener.java:40) ~[?:?]
	at jdk.internal.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
	at net.md_5.bungee.event.EventHandlerMethod.invoke(EventHandlerMethod.java:19) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at net.md_5.bungee.event.EventBus.post(EventBus.java:47) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at net.md_5.bungee.api.plugin.PluginManager.callEvent(PluginManager.java:453) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at net.md_5.bungee.connection.UpstreamBridge.disconnected(UpstreamBridge.java:66) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at net.md_5.bungee.netty.HandlerBoss.channelInactive(HandlerBoss.java:60) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:389) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:354) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.handler.timeout.IdleStateHandler.channelInactive(IdleStateHandler.java:277) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:819) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:384) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[waterfall-sqlite-B.jar:git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:d5978da:380]
	at java.lang.Thread.run(Unknown Source) [?:?]

What other programs/plugins are you running?

Capture

What is happening?

Plugin writes error when players try join with unsupported version

What did you expect to happen?

No write this error.

Additional context

Validate resource pack URLs and zip files

Is your feature request related to a problem? Please describe.

Some hosts (like mediafire, google drive, etc) will not work properly when used as pack urls which leads to errors.

Describe the solution you'd like

Validate the URL as well as that the zip has a proper resource pack setup and is not some other pack type.

Describe alternatives you've considered

A wiki page explaining the differences. Would need to be repeated to users every time though.

Additional context

The zip file check will detect non-direct download links too so that doesn't really need to be split in two. Temporary links can't really be detected so some blacklist for mediafire&co should be included.

Players not getting the resourcepack prompt

/usepack says they already have the pack, but it never sends it to them. Version: 1.6.19-SNAPSHOT (build 249)

Config

debug: true
autogeneratehashes: true
messages:
  usepack: You now use the pack %pack%!
  packlisthead: 'Packs available to you:'
  nopacks: No packs found!
packs:
  slpack:
    url: https://github.com/StarLegacy/StarLegacyResourcepack/releases/download/v3.0/StarLegacyResourcepack.v3.0.zip
    hash: 8a35431fc44baacf3162ab0f2ab620a4ba251826
empty: slpack
global:
  send-delay: 20
  pack: slpack
servers:
  survival:
    pack: slpack
    send-delay: 20
  creative:
    pack: slpack
    send-delay: 20

Players dont automatically get packs when loading server

Hi,

I've tried setting up your plugin, but I can't get the pack to apply when people switch server?

Config:

debug: true
default-language: en
disable-metrics: false
autogeneratehashes: true
usepack-is-temporary: true
stored-packs-override-assignments: false
permanent-pack-remove-time: 30
packs:
  mech:
    url: https://gamingculture.xyz/download/MechResources_v2.2.0.zip
    hash: ee8bfd399da3a065ec5426e287f701d8a020ca28
    format: 5
    restricted: false
global:
  send-delay: 20
servers:
  survival-chill:
    pack: mech

So, nothing essentially happens when a user joins the survival-chill server.
But if I from the bungee console runs usepack mech PeaceDealer the pack does apply fine.

On join, I also see this message appear in the console:
Backend mc server send pack backend-mechresources_v2.2.0 (http://gamingculture.xyz/download/MechResources_v2.2.0.zip) to player PeaceDealer
and it seems as if it's trying to load it, but it's not applied.

How would I configure WorldResourcePack to only listen for the relay of BungeeResourcePack?

Waterfall dev 294
BungeeResourcePack dev 280
Paper dev 186 (Spigot 1.14.4)
WorldResourcePack dev 280

@Phoenix616 How would I configure WorldResourcePack so it does not modify the resource pack loading at all but listens for BungeeResourcePack for relaying to ShowItem - to prevent chinese characters from showing if not using the resource pack?

BRP Config
https://paste.ubuntu.com/p/TVw5sfyxD2/
WRP Config
https://paste.ubuntu.com/p/PjRJKpN6W4/

If WRP is configured with a pack, the resource pack gets sent / loads twice on login. It also forces the pack to load again if you idle connections on the proxy and reconnect clients back to the server after a restart, even if it's set to use the same pack.

If WRP is not configured with a pack, the resource pack only gets sent once by BRP and the pack doesn't force load again if you idle connections on the proxy and reconnect it to the server after a restart. However if you change worlds while in-game, WRP forces the pack to change to Empty!

I would just like BungeeResourcePack to control global loading of the pack but communicate to WorldResourcePack so it can tell ShowItem to not show chinese characters to players not using the resource pack. It seems like they don't currently communicate to each other and each independently try to load a resource pack. :(

GeyserMC

I'm using VelocityResourcepacks together with GeyserMC on my Velocity server and it gives me this error:

[02:20:52 ERROR]: Exception in task de.themoep.resourcepacksplugin.velocity.listeners.ServerSwitchListener$$Lambda$1043/0x00000008010f5390@38a47353 by plugin VelocityResourcepacks
java.lang.NullPointerException: Cannot invoke "org.geysermc.connector.GeyserConnector.getPlayerByUuid(java.util.UUID)" because "this.geyserConnector" is null
at de.themoep.resourcepacksplugin.velocity.integrations.GeyserIntegration.hasPlayer(GeyserIntegration.java:37) ~[?:?]
at de.themoep.resourcepacksplugin.velocity.VelocityResourcepacks.getPlayerClientType(VelocityResourcepacks.java:705) ~[?:?]
at de.themoep.resourcepacksplugin.core.PackManager.checkPack(PackManager.java:927) ~[?:?]
at de.themoep.resourcepacksplugin.core.PackManager.getApplicablePack(PackManager.java:879) ~[?:?]
at de.themoep.resourcepacksplugin.core.PackManager.applyPack(PackManager.java:814) ~[?:?]
at de.themoep.resourcepacksplugin.velocity.listeners.ServerSwitchListener.calculatePack(ServerSwitchListener.java:79) ~[?:?]
at de.themoep.resourcepacksplugin.velocity.listeners.ServerSwitchListener.lambda$onServerSwitch$0(ServerSwitchListener.java:63) ~[?:?]
at com.velocitypowered.proxy.scheduler.VelocityScheduler$VelocityTask.lambda$run$1(VelocityScheduler.java:203) ~[BungeeCord.jar:3.0.1-SNAPSHOT (git-a037aebf-b38)]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]

The texturepack does not load

Hi,
i use your Plugin with Velocity and the texturepack does not load, it says that its downloaded but the textures dosent change
Can you please help me?

WorldResourcePack - not switching correctly

When a player goes to a different world and uses the /usepack <packname> it changes to that resourcepack but then 5 seconds later reverts back to the main resource pack for the other world

Not sure whats happening

Decline message keeps sending every world change

Used Version

1.10.10

Config

# Assignment section for the whole server. (Per worlds assignments override these settings)
global:
 pack: StickyPack
 send-delay: 10
 actions:
   declined:
     message: |-
       &c&lWarning:
       &c  You have declined to use our resourcepack.
       &c  We have 250+ custom items that you wont be able to see.
       &7
       &c  If you wish to enable our resourcepack visit
       &a  &a&nhttps://stickymc.com/StickyPack
   loaded:
     message: "&7&oResourcepack successfully loaded."
 first-join-actions:
   declined:
     message: |-
       &c&lWarning:
       &c  You have declined to use our resourcepack.
       &c  We have 250+ custom items that you wont be able to see.
       &7
       &c  If you wish to enable our resourcepack visit
       &a  &a&nhttps://stickymc.com/StickyPack
   loaded:
     message: "&7&oResourcepack successfully loaded."

Environment description

Tuinity 1.16.4
Java 11

What is happening?

When a player declines the resource pack and we send them a declined message, it sends the message to the player every single time they change worlds...

What did you expect to happen?

It should not send the decline message every single time they change worlds.

Additional context

[BungeeResourcepacks] players not getting download prompt

hello, i am using BungeeResourcepacks on waterfall-1.17-445
the resourcepack loads with no issues if i set "server resource packs: enabled" in server info
but it does not give me a prompt to enable server resource pack if i have it set to "server resource packs: prompt"

version is 1.17
here is my config (with links and pack names edited)

debug: true
default-language: en
disable-metrics: false
autogeneratehashes: true
usepack-is-temporary: false
stored-packs-override-assignments: true
permanent-pack-remove-time: 30
empty:
url: http://cdn.moep.tv/files/Empty.zip
hash: 01517226212d27586ea0c5d6aff1aa5492dd2484
global:
pack: packname1
servers:
BirbServer:
pack: packname1
secondary:
- gamepack
BetterServer:
pack: packname1
regex: minigame_.*
packs:
packname1:
url: https://link.link/pack.zip
hash: 1d2057e39ce8a73c1c0a8b16fdc0f9b492640725
format: 7
version: '1.17'
restricted: false
permission: bungeeresourcepacks.pack.packname1
ores:
url: hhttps://link.link/pack.zip
hash: 1d2057e39ce8a73c1c0a8b16fdc0f9b492640725
format: 7
version: '1.17'
restricted: false
permission: bungeeresourcepacks.pack.packname1
globalpack:
url: http://example.com/globalpack.zip
hash: abcdef012345678abcdef012345678abcdef0123
restricted: false
permission: bungeeresourcepacks.pack.globalpack
gamepack:
restricted: false
permission: bungeeresourcepacks.pack.gamepack
variants:
- url: http://example.com/minigameresourcepack_1_15.zip
hash: 012345678abcdef012345678abcdef012345678a
format: null
version: '1.15'
restricted: false
permission: bungeeresourcepacks.pack.gamepack-variant-1
type: null
variants: null
- url: http://example.com/minigameresourcepack_1_12.zip
hash: 012345678abcdef01234567dddcdef012345678a
format: null
version: '1.12'
restricted: false
permission: bungeeresourcepacks.pack.gamepack-variant-2
type: null
variants: null

here is bungee console
image

[FIXED] Sending Wrong resource packs

  gamepack:
    variants:
    - url: https://www.dropbox.com/s/7v60qh52ysekv4o/new.zip?dl=1
      hash: bb97164a572c9790541088a6e02ce803f60e52be
      format: 6
      version: '1.16'
      restricted: `false`
      permission: worldresourcepacks.pack.gamepack-variant-1
      variants: null
    - url: https://www.dropbox.com/s/bwez9ofhg3hw0y5/legacy_cvcmar17zip.zip?dl=1
      hash: c00ceeb39916f930cc8ec9f8e529bb059cc3deac
      format: 1
      version: '1.8'
      restricted: false
      permission: worldresourcepacks.pack.gamepack-variant-2
      variants: null
    restricted: false
    permission: worldresourcepacks.pack.gamepack
this does not check the version it just sends the first variant always

Resoucepack not downloading on server?

So I have been testing this plugin for a while and it really is amazing because it completely works on my dev server but then when I plug it into my normal server nothing works or downloads?

I have been trying for days to figure this damn bug out and I am so lost because I literally have copied and pasted the config from my dev server to my normal as well as versions of the plugin so it should work?

There are no errors in console either so it's annoying me even more because I don't even know what the issue is with my main server.

Here is the config of my normal server (the broken one) - https://pastebin.com/Dzne3i6D
Here is the config of my dev server (the working one) - https://pastebin.com/QhHMbKLv

If you need me to send anything else just ask, I just wish it would work

global pack not enabled

Spigot 1.13 latest
WRP 1.6.19-b215

Player meets "global" specification. Player is in world and world_lobby. In both cases, the blackpack (default) is not enabled.

This worked correctly with b214. Do I need to change the configuration?

config.yml

# World Resourcepacks configuration

debug: true

# Whether or not resourcepack file hashes should be generated on startup:
autogeneratehashes: true
messages:
  usepack: You are now using pack %pack%!
  packlisthead: "Packs available to you:"
  nopacks: No packs found!

packs:
# lobbypack: 
#   # The url the client should download the resourcepack from.
#   # Has to be a direct download link! No medifaire/mega/other oneclick-hoster!
#   url: https://github.com/Phoenix616/ResourcepacksPlugins/blob/master/Empty.zip?raw=true
#   # The sha1 hash of the resourcepack's zip file, 
#   # Not supported by bukkit so it currently does not matter what you write here!
#   hash: abcdef012345678abcdef012345678abcdef0123
#   # The format version of this resourcepack
#   # 1 is for 1.8 packs
#   # 2 is for 1.9
#   # 3 is for 1.12
#   # 4 is for 1.13
#   format: 1
#   # Whether or not this pack will only be send to players with a certain permission
#   # permission: worldresourcepacks.pack.<packname>
#   restricted: false
#   # If you want you can define a specific permission for this pack if you don't want
#   # the default worldresourcepacks.pack.<packname> permission!
#   permission: worldresourcepacks.pack.lobbypack

  blackpack:
    url: http://ELIDED/blackdog-4.zip?u=0
    hash: 21473b7cc3177fe993298bb15acf67a80d37bece
    format: 4
    restricted: false

  whitepack:
    url: http://ELIDED/whitedog-4.zip?u=0
    hash: 461a76eca7d44a3a50fc2f9a3413af4607b1808f
    format: 4
    restricted: false

  yellowpack:
    url: http://ELIDED/yellowdog-4.zip?u=0
    hash: ed085f0a575ab655a0d54a91a31c738db5606475
    format: 4
    restricted: false

  # Empty pack to reset the pack to the default one
  emptypack:
    # url: https://github.com/Phoenix616/ResourcepacksPlugins/blob/master/Empty.zip?raw=true
    url: http://ELIDED/Empty-4.zip?raw=true
    hash: 34820eb0b89b5c8ec7bb58cfc2e5e1712a131d4d
    format: 4
    restricted: false

# Name of the pack to use for resetting of the pack for servers which don't have one assigned
empty: blackpack

server:
  pack: blackpack

  # List of packs to not replace if the user already has them
  # If no main pack is set the first one also gets used to reset 
  # the pack if the user has a non secondary one
  # Also this list will be used to select a pack if a user does not have the permission
  # or the right version to use that pack. (From top to bottom)
  # secondary:
  # - emptypack

worlds:
  world_whitedog:
    pack: whitepack
  world_whitedog_nether:
    pack: whitepack
  world_whitedog_the_end:
    pack: whitepack
  world_yellowdog:
    pack: yellowpack
  world_yellowdog_nether:
    pack: yellowpack
  world_yellowdog_the_end:
    pack: yellowpack

Is it possible to prevent resource usage prompt using packets?

Is there any way using packets (ProtocolLib or other methods) to prevent the resource use prompt on login from appearing every time someone connects, to then instead have clients use a cached version of the server resource pack if the hash matches? As having it re-ask people to use and download the server pack every time they login to the server is quite an annoyance.

BungeeResourcepacks on 1.16.1: Getting kicked from proxy when using /usepack

Waterfall build: 1.16-R0.2-SNAPSHOT:54d1f4a:360
BungeeResourcepacks version: 1.8.0-SNAPSHOT (build 315)

Stack trace:

java.lang.NoSuchMethodError: 'net.md_5.bungee.api.chat.BaseComponent[] net.md_5.bungee.api.chat.HoverEvent.getValue()'
at de.themoep.resourcepacksplugin.bungee.libs.minedown.Replacer.replaceIn(Replacer.java:203) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.Replacer.replaceIn(Replacer.java:171) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.MineDown.toComponent(MineDown.java:118) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.libs.minedown.MineDown.parse(MineDown.java:100) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.getComponents(BungeeResourcepacks.java:683) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.sendMessage(BungeeResourcepacks.java:753) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.BungeeResourcepacks.sendMessage(BungeeResourcepacks.java:748) ~[?:?]
at de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor.sendMessage(PluginCommandExecutor.java:125) ~[?:?]
at de.themoep.resourcepacksplugin.core.commands.UsePackCommandExecutor.run(UsePackCommandExecutor.java:102) ~[?:?]
at de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor.execute(PluginCommandExecutor.java:103) ~[?:?]
at de.themoep.resourcepacksplugin.bungee.ForwardingCommand.execute(ForwardingCommand.java:41) ~[?:?]
at net.md_5.bungee.api.plugin.PluginManager.dispatchCommand(PluginManager.java:197) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.api.plugin.PluginManager.dispatchCommand(PluginManager.java:148) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.connection.UpstreamBridge.handle(UpstreamBridge.java:153) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.protocol.packet.Chat.handle(Chat.java:76) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at net.md_5.bungee.netty.HandlerBoss.channelRead(HandlerBoss.java:105) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[BungeeCord.jar:git:Waterfall-Bootstrap:1.16-R0.2-SNAPSHOT:54d1f4a:360]

Option to disable metrics.

I have bStats disabled on my BungeeCord configuration. Would it be possible to add an option to disable the check in BungeeResourcepacks as well?

02:39:48 [FINE] [BungeeResourcepacks] Failed to submit plugin statistics: java.io.IOException: Server returned HTTP response code: 504 for URL: http://report.mcstats.org/plugin/BungeeResourcepacks

Regex in config?

Hello, I'm using a custom plugin to generate dungeons and the world name is different for each instance of a dungeon.

I noticed there is a regex: option in the config, but couldn't find any documentation on what it does. Is it possible that it allow for a resource pack to be used on a specific set of worlds that fit the regex?

Best,
Kalvin

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.