mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 06:36:44 +01:00
Fixed texture packs
This commit is contained in:
parent
7a6cef1d07
commit
38ec36f81d
@ -15,8 +15,7 @@ import java.util.Map.Entry;
|
|||||||
import static com.intellectualcrafters.plot.PlotWorld.*;
|
import static com.intellectualcrafters.plot.PlotWorld.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO finish recoding this class
|
*
|
||||||
*
|
|
||||||
* @auther Empire92
|
* @auther Empire92
|
||||||
* @author Citymonstret
|
* @author Citymonstret
|
||||||
*
|
*
|
||||||
|
@ -131,18 +131,14 @@ public class PlayerEvents implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void textures(Player p) {
|
private void textures(Player p) {
|
||||||
|
if ((Settings.PLOT_SPECIFIC_RESOURCE_PACK.length() > 1) && isPlotWorld(p.getWorld())) {
|
||||||
// TODO this thing still bugs you about non existing texture packs
|
p.setResourcePack(Settings.PLOT_SPECIFIC_RESOURCE_PACK);
|
||||||
// What can I do about it? - fix it.
|
}
|
||||||
|
|
||||||
// if ((Settings.PLOT_SPECIFIC_RESOURCE_PACK.length() > 1) && isPlotWorld(p.getWorld())) {
|
|
||||||
// p.setResourcePack(Settings.PLOT_SPECIFIC_RESOURCE_PACK);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onChangeWorld(PlayerChangedWorldEvent event) {
|
public void onChangeWorld(PlayerChangedWorldEvent event) {
|
||||||
if (isPlotWorld(event.getFrom())) {
|
if (isPlotWorld(event.getFrom()) && Settings.PLOT_SPECIFIC_RESOURCE_PACK.length() > 1) {
|
||||||
event.getPlayer().setResourcePack("");
|
event.getPlayer().setResourcePack("");
|
||||||
} else {
|
} else {
|
||||||
textures(event.getPlayer());
|
textures(event.getPlayer());
|
||||||
|
Loading…
Reference in New Issue
Block a user