Bypass Enjin servers for resource pack downloads

This commit is contained in:
AlexTheCoder 2018-06-14 02:33:50 -04:00
parent d23bacb95a
commit 9da4abf235
4 changed files with 35 additions and 19 deletions

View File

@ -219,7 +219,8 @@ public class ResourcePackManager extends MiniPlugin implements CommandCallback
for (Player player : Bukkit.getOnlinePlayers()) for (Player player : Bukkit.getOnlinePlayers())
{ {
player.setResourcePack("http://file.mineplex.com/ResReset.zip"); //player.setResourcePack("http://file.mineplex.com/ResReset.zip");
player.setResourcePack("http://198.20.72.74/ResReset.zip");
} }
} }
else else
@ -257,8 +258,8 @@ public class ResourcePackManager extends MiniPlugin implements CommandCallback
return; return;
} }
player.setResourcePack("http://file.mineplex.com/ResReset.zip"); //player.setResourcePack("http://file.mineplex.com/ResReset.zip");
player.setResourcePack("http://198.20.72.74/ResReset.zip");
} }
} }
}
}

View File

@ -171,8 +171,10 @@ public class Clans extends JavaPlugin
ResourcePackManager resourcePackManager = new ResourcePackManager(this, portal); ResourcePackManager resourcePackManager = new ResourcePackManager(this, portal);
resourcePackManager.setResourcePack(new Pair[] resourcePackManager.setResourcePack(new Pair[]
{ {
Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResClans.zip"), //Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResClans.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResClans19.zip") //Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResClans19.zip")
Pair.create(MinecraftVersion.Version1_8, "http://198.20.72.74/ResClans.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://198.20.72.74/ResClans19.zip")
}, true); }, true);
SnapshotManager snapshotManager = new SnapshotManager(this, new SnapshotRepository(serverStatusManager.getCurrentServerName(), getLogger())); SnapshotManager snapshotManager = new SnapshotManager(this, new SnapshotRepository(serverStatusManager.getCurrentServerName(), getLogger()));

View File

@ -124,12 +124,15 @@ public enum GameType
ChampionsTDM(ChampionsTDM.class, GameDisplay.ChampionsTDM), ChampionsTDM(ChampionsTDM.class, GameDisplay.ChampionsTDM),
Christmas(Christmas.class, GameDisplay.Christmas, new Pair[] Christmas(Christmas.class, GameDisplay.Christmas, new Pair[]
{ {
Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResChristmas.zip") //Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResChristmas.zip")
Pair.create(MinecraftVersion.ALL, "http://198.20.72.74/ResChristmas.zip")
}, true), }, true),
ChristmasNew(ChristmasNew.class, GameDisplay.ChristmasNew, new Pair[] ChristmasNew(ChristmasNew.class, GameDisplay.ChristmasNew, new Pair[]
{ {
Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResChristmas2.zip"), //Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResChristmas2.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResChristmas219.zip") //Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResChristmas219.zip")
Pair.create(MinecraftVersion.Version1_8, "http://198.20.72.74/ResChristmas2.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://198.20.72.74/ResChristmas219.zip")
}, false), }, false),
DeathTag(DeathTag.class, GameDisplay.DeathTag), DeathTag(DeathTag.class, GameDisplay.DeathTag),
DragonEscape(DragonEscape.class, GameDisplay.DragonEscape), DragonEscape(DragonEscape.class, GameDisplay.DragonEscape),
@ -137,14 +140,16 @@ public enum GameType
DragonsTeams(DragonsTeams.class, GameDisplay.DragonsTeams), DragonsTeams(DragonsTeams.class, GameDisplay.DragonsTeams),
Draw(Draw.class, GameDisplay.Draw, new Pair[] Draw(Draw.class, GameDisplay.Draw, new Pair[]
{ {
Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResDrawMyThing.zip") //Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResDrawMyThing.zip")
Pair.create(MinecraftVersion.ALL, "http://198.20.72.74/ResDrawMyThing.zip")
}, true), }, true),
ElytraRings(ElytraRings.class, GameDisplay.ElytraRings), ElytraRings(ElytraRings.class, GameDisplay.ElytraRings),
Evolution(Evolution.class, GameDisplay.Evolution), Evolution(Evolution.class, GameDisplay.Evolution),
Gravity(Gravity.class, GameDisplay.Gravity), Gravity(Gravity.class, GameDisplay.Gravity),
Halloween(Halloween.class, GameDisplay.Halloween, new Pair[] Halloween(Halloween.class, GameDisplay.Halloween, new Pair[]
{ {
Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResHalloween.zip") //Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResHalloween.zip")
Pair.create(MinecraftVersion.ALL, "http://198.20.72.74/ResHalloween.zip")
}, true), }, true),
Halloween2016(Halloween2016.class, GameDisplay.Halloween2016), Halloween2016(Halloween2016.class, GameDisplay.Halloween2016),
HideSeek(HideSeek.class, GameDisplay.HideSeek), HideSeek(HideSeek.class, GameDisplay.HideSeek),
@ -153,8 +158,10 @@ public enum GameType
MilkCow(MilkCow.class, GameDisplay.MilkCow), MilkCow(MilkCow.class, GameDisplay.MilkCow),
MineStrike(Minestrike.class, GameDisplay.MineStrike, new Pair[] MineStrike(Minestrike.class, GameDisplay.MineStrike, new Pair[]
{ {
Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResMinestrike.zip"), //Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResMinestrike.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResMinestrike19.zip") //Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResMinestrike19.zip")
Pair.create(MinecraftVersion.Version1_8, "http://198.20.72.74/ResMinestrike.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://198.20.72.74/ResMinestrike19.zip")
}, true), }, true),
BawkBawkBattles(BawkBawkBattles.class, GameDisplay.BawkBawkBattles), BawkBawkBattles(BawkBawkBattles.class, GameDisplay.BawkBawkBattles),
MinecraftLeague(MinecraftLeague.class, GameDisplay.Minecraft_League), MinecraftLeague(MinecraftLeague.class, GameDisplay.Minecraft_League),
@ -186,7 +193,8 @@ public enum GameType
WitherAssault(WitherGame.class, GameDisplay.WitherAssault), WitherAssault(WitherGame.class, GameDisplay.WitherAssault),
Wizards(Wizards.class, GameDisplay.Wizards, new Pair[] Wizards(Wizards.class, GameDisplay.Wizards, new Pair[]
{ {
Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResWizards.zip") //Pair.create(MinecraftVersion.ALL, "http://file.mineplex.com/ResWizards.zip")
Pair.create(MinecraftVersion.ALL, "http://198.20.72.74/ResWizards.zip")
}, true), }, true),
ZombieSurvival(ZombieSurvival.class, GameDisplay.ZombieSurvival), ZombieSurvival(ZombieSurvival.class, GameDisplay.ZombieSurvival),
Build(Build.class, GameDisplay.Build), Build(Build.class, GameDisplay.Build),
@ -207,8 +215,10 @@ public enum GameType
BattleRoyale(BattleRoyaleSolo.class, GameDisplay.BattleRoyale, new Pair[] BattleRoyale(BattleRoyaleSolo.class, GameDisplay.BattleRoyale, new Pair[]
{ {
Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResStrikeGames18.zip"), //Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResStrikeGames18.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResStrikeGames19.zip") //Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResStrikeGames19.zip")
Pair.create(MinecraftVersion.Version1_8, "http://198.20.72.74/ResStrikeGames18.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://198.20.72.74/ResStrikeGames19.zip")
}, true), }, true),
CakeWars4(CakeWars.class, GameDisplay.CakeWars4), CakeWars4(CakeWars.class, GameDisplay.CakeWars4),
@ -254,8 +264,10 @@ public enum GameType
new GameMode(SmashDom.class, GameType.ChampionsDominate, "Smash Dominate"), new GameMode(SmashDom.class, GameType.ChampionsDominate, "Smash Dominate"),
new GameMode(SuperPaintstrike.class, GameType.MineStrike, "Super Paintstrike", new Pair[] new GameMode(SuperPaintstrike.class, GameType.MineStrike, "Super Paintstrike", new Pair[]
{ {
Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResMinestrike.zip"), //Pair.create(MinecraftVersion.Version1_8, "http://file.mineplex.com/ResMinestrike.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResMinestrike19.zip") //Pair.create(MinecraftVersion.Version1_9, "http://file.mineplex.com/ResMinestrike19.zip")
Pair.create(MinecraftVersion.Version1_8, "http://198.20.72.74/ResMinestrike.zip"),
Pair.create(MinecraftVersion.Version1_9, "http://198.20.72.74/ResMinestrike19.zip")
}, true), }, true),
}, GameDisplay.Brawl, null, false, null, false, true); }, GameDisplay.Brawl, null, false, null, false, true);

View File

@ -1908,7 +1908,8 @@ public class GunModule implements Listener
{ {
if (event.getMessage().equalsIgnoreCase("/rpoff")) if (event.getMessage().equalsIgnoreCase("/rpoff"))
{ {
event.getPlayer().setResourcePack("http://file.mineplex.com/ResReset.zip"); //event.getPlayer().setResourcePack("http://file.mineplex.com/ResReset.zip");
event.getPlayer().setResourcePack("http://198.20.72.74/ResReset.zip");
UtilPlayer.message(event.getPlayer(), F.main("Resource Pack", "Resource Pack: " + C.cRed + "Disabled")); UtilPlayer.message(event.getPlayer(), F.main("Resource Pack", "Resource Pack: " + C.cRed + "Disabled"));
UtilPlayer.message(event.getPlayer(), F.main("Resource Pack", "Type " + F.elem("/rpon") + " to enable.")); UtilPlayer.message(event.getPlayer(), F.main("Resource Pack", "Type " + F.elem("/rpon") + " to enable."));