WorldGuard Resource Pack Flag
WorldGuard Resource Pack Flag
"WorldGuard" extension to set a serverside resourcepack URL for single WorldGuard regions.
How to use this?
This plugin adds a new region flag to worldguard: "texturepack".
The flags name is still texturepack to guarantee compatibility to older versions of this plugin.
A player inside a region with this flag set will see the world with the given resourcepack. You should not use this flag too often as the client needs some seconds to load the resourcepack.
So simply use the usual worldguard region command, like this:
/region flag <region> texturepack http://www.example.com/texture-pack.zip
to make the client use the given resourcepack, or:
/region flag <region> texturepack
to set the flag back to default value (nothing).
The plugin does not reset the resourcepack back to default as Minecraft does not offer a method for this. If you want the resources to be reset you can simply set the value of the flag in the __global__
region to your default server texture pack or an empty zip-folder which is uploaded on any server. If you do not know where to host this file you can use this one: http://ftp.mewin.de/empty.zip .
Permissions
- none yet :)
Dependencies
The plugin requires the latest WorldGuard Custom Flags and WorldGuard Region Events.
Click here for some other plugins using WorldGuard Custom Flags.
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
Greetings, I got this error
I'm on 1.7.10, is there any way to fix it - or is there any alternative for 1.7.10? I just want each world to use it's own texture pack.
Still works.. kinda lol I'm using the new updated version of wgregionevents https://www.spigotmc.org/resources/wgregionevents-continued.15946/
I enter a region and it prompts me if I want to download the resource; it's required for the region, I say yes.. it downloads, the screen blanks out like it's refreshing and then nothing happens... It never switches..... Any ideas from anyone? I'm using Craftbukkit 1.9 R1.. No errors at all. If I place the resource into my resource packs and manually switch it works.. nothing wrong with the pack itself...
@AGearBeast
Seems to be working on my server with Spigot 1.9.4.
But it crashes the client if you change back and forth between resource packs too quickly. Other than that it seems to do it's job OK - AFAIK - with 5 minutes of testing.
Will this be updated for 1.9
For those saying it does not work in 1.7.10 , It Does work. I am using this with Spigot Build #1649 (1.7.10-R0.1-Snapshot / 1.8.x Bridge) and it loads up and triggers just fine. Possibly it will not load if you have not installed the "WorldGuard Region Events" plugin, in which case, this addon would not be able to function.
@oscarmj11
I support this idea ;)
Does this not work in 1.7.10? I get an internal error trying to enable it.
please update this plugin
@adamwbb
Have you tried setting the resourcepack link from the server console which has unlimited characters per command?
@adamwbb
I am sorry, but these are Minecraft limitations I can not change (easily). You should probably not use the flag too often in your world and then have to live with the problems/wait for Mojang to update it.
new version works but has a few issues
it will cause you to experience severe lag for 10 seconds when switching textures.
every once in a while it will break the client forcing it to go to default textures until client is restarted.
final issue is that its impossible to apply textures on certain regions and certain texturepacks due to the limit of characters allowed in a minecraft command. such as
/region flag DerpNationPlot50 texturepack https://dl.dropboxusercontent.com/u/9460513/TARDIS.zip
this would not fit in the command thus making it impossible for the flag to be Set.
This plugin stopped working because of directory name changes from C:\Users\randomguy\AppData\Roaming\.minecraft\tesxturepacks to C:\Users\randomguy\AppData\Roaming\.minecraft\resourcepacks and minecraft changed the listeners from texture to resource in the classes. There was an issue with 1.6.2 where .zips could not work which has been fixed in 1.6.4 so if someone could pick this up and fix the directory issues and the listener issues this plugin will probably work just fine. I personally have no idea how to dissect this plugin to change the directory issues but I know someone does so please someone pick this up and fix it for us.
@amli2011
Resource pack are disabled in general on any server. Vanilla or not, if you place something in Texturepack = TextureExample.zip in your server.properties, it will not work. Mojang has to work on it's side until then, This plugin and resource packs in general won't work. I heard something like we will have to wait 3-4 months somewhere. I don't remember where though and I don't remember how come. -Hope it helps.
It did use this with 1.5.1 and 1.5.2 without any problem. When I upgraded to 1.6.1 and 1.6.2 it did not work. I don't get any error, but the client don't even try to download the textures from my webserver.
I think it need an update for the new Resource packs... But I don't even know if it is possible.
Is this still working with 1.6.2? I know that there's an issue with server side texture packs since the client no longer has a gui for it.
Does this work with 1.5.2? If not, could you please update?
@Kloporte
Stay under 10MB or it won't work. That is a Minecraft client bug
Is there a maximum weight for the file ? My TP is 10,5Mo (hosted on dropbox, it's a direct link to the zip, no button), i tried to add it to __Global__ region but it didn't work, well the tag is added (i checked the files, the tag and url are ok). So i tried with a test region, when entering it it sometimes display the screen saying it's downloading the TP but it go straight to 100% and the TP isn't changed.
Have you an idea ?
Got it to work by using the direct link button address thanks bud for help you get a star
@evilnucca
I don't know if dropbox would work since that link isn't a direct download, but I'm not certain.