Arcade fix! Now its possible to run the server
This commit is contained in:
@ -71,7 +71,7 @@ import mineplex.core.stats.StatsManager;
|
||||
import mineplex.core.status.ServerStatusManager;
|
||||
import mineplex.core.teleport.Teleport;
|
||||
import mineplex.core.thank.ThankManager;
|
||||
//import mineplex.core.twofactor.TwoFactorAuth;
|
||||
import mineplex.core.twofactor.TwoFactorAuth;
|
||||
import mineplex.core.updater.FileUpdater;
|
||||
import mineplex.core.updater.Updater;
|
||||
import mineplex.core.velocity.VelocityFix;
|
||||
@ -207,7 +207,7 @@ public class Arcade extends JavaPlugin
|
||||
new FoodDupeFix(this);
|
||||
|
||||
//two factor is mad annoying`
|
||||
//require(TwoFactorAuth.class);
|
||||
require(TwoFactorAuth.class);
|
||||
require(WebsiteLinkManager.class);
|
||||
//require(TwitchIntegrationFix.class);
|
||||
|
||||
|
@ -1377,7 +1377,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
|
||||
{
|
||||
TimingManager.start("ArcadeManager LoadFiles");
|
||||
|
||||
File folder = new File(".." + File.separatorChar + ".." + File.separatorChar + "update" + File.separatorChar
|
||||
File folder = new File("update" + File.separatorChar
|
||||
+ "maps" + File.separatorChar + gameName);
|
||||
System.out.println(folder.getAbsolutePath() + " -=-=-=-=-=");
|
||||
if (!folder.exists())
|
||||
|
@ -494,6 +494,7 @@ public abstract class Game extends ListenerComponent implements Lifetimed
|
||||
|
||||
caller.sendMessage(F.main("Kit", "Sorry, but that is not a kit!"));
|
||||
});
|
||||
|
||||
registerDebugCommand("cooldown", Perm.DEBUG_COMMANDS, PermissionGroup.ADMIN, (caller, args) ->
|
||||
{
|
||||
for (Player other : UtilServer.getPlayers())
|
||||
|
@ -380,6 +380,12 @@ public class GameCreationManager implements Listener
|
||||
_maps.put(type, Manager.LoadFiles(type.getName()));
|
||||
}
|
||||
|
||||
if(MapPref == null){
|
||||
if(_maps.get(gameType) != null){
|
||||
MapPref = _maps.get(gameType).get(0);
|
||||
}
|
||||
}
|
||||
|
||||
if (MapPref != null)
|
||||
{
|
||||
MapPref = MapPref.replace(" ", "");
|
||||
@ -425,7 +431,7 @@ public class GameCreationManager implements Listener
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Map Preference: None");
|
||||
System.out.println("Map Preference: None ");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user