Jump to content

Recommended Posts

Posted (edited)
On 16/10/2017 at 2:30 AM, Rumble said:

why you post your topic in my topic?

you give datapack/gameserver

i give only code. :)

Edited by PaRaNoiC*
  • 3 weeks later...
  • 2 weeks later...
Posted (edited)

the code is poorly written and its missing to many checks/protections its a basic "i am blue" and "you are red" with so many useless if statements, bad handle of try with resources  http://prntscr.com/ha9m9a

you could at least update/fix it instead of found and share cause not all knows how to edit

Edited by Nightw0lf
  • 1 year later...
Posted

You have an empty config in your properties / you forgot to paste the config to properties and by default its empty on config.java

 

To find out which config is that, go to Config.java 1483 line.

Posted

Thanks for the tip ... was there value not enough.

 

  1. +# Annnounce Faction Players
  2. +# Values Are In Minutes
  3. +AnnouncePlayersDelay =

Kara's nervous? I'm a noob at java but trying to understand and Yes I code it wrote.

Posted

 

 

Now there is another problem (the factions can beat each other in the city with a simple attack, but with skills they cannot ... what check to prohibit in cities to beat with a simple attack? I suppose something is necessary here

 

  1.     public void updatePvPStatus()
        {
            if (!issfaction() || !isffaction())
            {
                return;
            }
                    if (isInsideZone(ZoneId.PVP))
            {
                return;
            }
            PvpFlagTaskManager.getInstance().add(this, Config.PVP_NORMAL_TIME)
            if (getPvpFlag() == 0)
            {
                updatePvPFlag(1);
            }
        }
        public void updatePvPStatus(Creature target)
        {
            final Player player = target.getActingPlayer();
            if (player == null)
            {
                return;
            }
            if (isInDuel() && player.getDuelId() == getDuelId())
            {
                return;
            }
            if (player.issfaction() || player.isffaction())
            {
                return;
            }
  • Vision locked this topic
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..