Temporarily disable clans maps

This commit is contained in:
AlexTheCoder 2017-06-19 18:53:34 -04:00 committed by cnr
parent 185ac9fc05
commit 7868287ace
7 changed files with 40 additions and 40 deletions

View File

@ -377,7 +377,7 @@ public class ClansGame extends MiniPlugin
@EventHandler @EventHandler
public void respawn(PlayerRespawnEvent event) public void respawn(PlayerRespawnEvent event)
{ {
_clans.getItemMapManager().setMap(event.getPlayer()); //_clans.getItemMapManager().setMap(event.getPlayer());
} }
@EventHandler(priority = EventPriority.LOW) @EventHandler(priority = EventPriority.LOW)

View File

@ -221,7 +221,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
private ProjectileManager _projectileManager; private ProjectileManager _projectileManager;
private WorldEventManager _worldEvent; private WorldEventManager _worldEvent;
private Chat _chat; private Chat _chat;
private ItemMapManager _itemMapManager; // private ItemMapManager _itemMapManager;
private DisguiseManager _disguiseManager; private DisguiseManager _disguiseManager;
private NpcManager _npcManager; private NpcManager _npcManager;
private Explosion _explosion; private Explosion _explosion;
@ -305,7 +305,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
_clanGame = new ClansGame(plugin, this); _clanGame = new ClansGame(plugin, this);
_clanUtility = new ClansUtility(this); _clanUtility = new ClansUtility(this);
_tutorial = new TutorialManager(plugin, clientManager, donationManager, chat, hologramManager, this, _npcManager, _taskManager); _tutorial = new TutorialManager(plugin, clientManager, donationManager, chat, hologramManager, this, _npcManager, _taskManager);
_itemMapManager = new ItemMapManager(this, _tutorial, _worldEvent); // _itemMapManager = new ItemMapManager(this, _tutorial, _worldEvent);
new TntGeneratorManager(plugin, this); new TntGeneratorManager(plugin, this);
new SupplyDropManager(plugin, this); new SupplyDropManager(plugin, this);
@ -492,7 +492,7 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
addCommand(new ClansChatCommand(this)); addCommand(new ClansChatCommand(this));
addCommand(new ClansAllyChatCommand(this)); addCommand(new ClansAllyChatCommand(this));
addCommand(new ClanManagementCommand(this)); addCommand(new ClanManagementCommand(this));
addCommand(new MapCommand(this)); // addCommand(new MapCommand(this));
addCommand(new SpeedCommand(this)); addCommand(new SpeedCommand(this));
} }
@ -563,10 +563,10 @@ public class ClansManager extends MiniClientPlugin<ClientClan>implements IRelati
return _inventoryManager; return _inventoryManager;
} }
public ItemMapManager getItemMapManager() // public ItemMapManager getItemMapManager()
{ // {
return _itemMapManager; // return _itemMapManager;
} // }
public Explosion getExplosion() public Explosion getExplosion()
{ {

View File

@ -987,18 +987,18 @@ public class ClansCommand extends CommandBase<ClansManager>
Plugin.getClanUtility().unclaimAll(caller); Plugin.getClanUtility().unclaimAll(caller);
} }
public void map(Player caller, String[] args) // public void map(Player caller, String[] args)
{ // {
ClansCommandExecutedEvent event = new ClansCommandExecutedEvent(caller, "map"); // ClansCommandExecutedEvent event = new ClansCommandExecutedEvent(caller, "map");
UtilServer.getServer().getPluginManager().callEvent(event); // UtilServer.getServer().getPluginManager().callEvent(event);
//
if (event.isCancelled()) // if (event.isCancelled())
{ // {
return; // return;
} // }
//
Plugin.getItemMapManager().setMap(caller); // Plugin.getItemMapManager().setMap(caller);
} // }
public void home(final Player caller, String[] args) public void home(final Player caller, String[] args)
{ {

View File

@ -33,6 +33,6 @@ public class MapCommand extends CommandBase<ClansManager>
@Override @Override
public void Execute(Player caller, String[] args) public void Execute(Player caller, String[] args)
{ {
Plugin.getItemMapManager().setMap(caller); //Plugin.getItemMapManager().setMap(caller);
} }
} }

View File

@ -469,13 +469,13 @@ public class NetherManager extends MiniPlugin
} }
} }
UtilServer.getPlayersCollection() // UtilServer.getPlayersCollection()
.stream() // .stream()
.filter(player -> isInNether(player)) // .filter(player -> isInNether(player))
.forEach(player -> // .forEach(player ->
{ // {
ClansManager.getInstance().getItemMapManager().removeMap(player); // ClansManager.getInstance().getItemMapManager().removeMap(player);
}); // });
} }
} }

View File

@ -157,17 +157,17 @@ public class RaidManager extends MiniPlugin
@EventHandler @EventHandler
public void update(UpdateEvent event) public void update(UpdateEvent event)
{ {
if (event.getType() == UpdateType.TICK) // if (event.getType() == UpdateType.TICK)
{ // {
UtilServer.getPlayersCollection() // UtilServer.getPlayersCollection()
.stream() // .stream()
.filter(player -> isInRaid(player.getLocation())) // .filter(player -> isInRaid(player.getLocation()))
.forEach(player -> // .forEach(player ->
{ // {
ClansManager.getInstance().getItemMapManager().removeMap(player); // ClansManager.getInstance().getItemMapManager().removeMap(player);
}); // });
return; // return;
} // }
if (event.getType() != UpdateType.SEC) if (event.getType() != UpdateType.SEC)
{ {
return; return;

View File

@ -128,7 +128,7 @@ public class ClansMainTutorial extends Tutorial
player.teleport(Spawn.getNorthSpawn()); player.teleport(Spawn.getNorthSpawn());
UtilInv.Clear(player); UtilInv.Clear(player);
ClansManager.getInstance().getItemMapManager().setMap(player); // ClansManager.getInstance().getItemMapManager().setMap(player);
}, 20 * 10L); }, 20 * 10L);
player.setWalkSpeed(0.2F); player.setWalkSpeed(0.2F);