Jump to content
  • 0

RR in oly help me how to fix pls!!


Question

Posted

In my server everyone does rr in oly and i am boring jailing people all the time!

i was wondering if someone could help me solve it!!!

interlude server

ty in advance!!

7 answers to this question

Recommended Posts

  • 0
Posted

Make a simple check in the Abormal Disconnection:

if(activeChar.isOly())Util.handleIllegalPlayerAction(player,"Punishment Enforced on Player: " + activeChar.getName() + " .Reason: Attempting to leave Oly.", IllegalPlayerAction.PUNISH_KICKBAN); 

(Names and params may be wrong, I ain't at home so I dun have eclipse here).

  • 0
Posted

what this is do if someone restarts???

 

 

Edit i want to make it other way...

if someone restarts then go to jail...

thnx again horus...

 

 

EDIT.No2:

If i want it jailtime 120 minuteS????

 

I will put JAIL_TIME7200 ??????

  • 0
Posted

Clientpackets/RequestRestart.java

 

This Is The Way...

        if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player))
        {
            player.sendMessage("You cant logout in olympiad mode");
            return;
        }

 

But If You Want Jail....

 

        if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player))
        {
            player.sendMessage("Oups, you try to relogin in olympiad mode? QQ Bro^^");
            player.setInJail(true, 120);
            player.closeNetConnection();   
            return;
        }

 

120 Min is Ok!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...