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!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock