Skip to content

[Help] Disable siege and fortress

Featured Replies

Sorry my EN,

 

How to disable the function siege and fortress?

 

Help me plz.

 

Pack? Anyway something like that: GameServer.java

 

ClanHallManager.getInstance();

- FortressOfResistance.getInstance();

- DevastatedCastle.getInstance();

BanditStrongholdSiege.getInstance();

AuctionManager.getInstance();

  • Author

 

Sorry my EN,

other way to disable them on the server complete?

If you want to desactivate ingame, you have to add configs, which basically do the same than Chr.Trance says.

 

      ClanHallManager.getInstance();

    if (!Config.DISABLE_SIEGES)
    {
          // CH sieges
          FortressOfResistance.getInstance();
          DevastatedCastle.getInstance();
          BanditStrongholdSiege.getInstance();

          // Siege engine
          SiegeManager.getInstance().getSieges();
   FortSiegeManager.getInstance();
   TerritoryWarManager.getInstance();
    }

     AuctionManager.getInstance();

 

And add code in config aswell, and in the good .properties.

 

I'm not even sure you can do it properly, it will surely bug in many places. All those codes are so imbricated than you will surely have to do big rework...

 

Another solution, more simple, is to delete sieges content in sql...

     

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.