SoNaR™ Posted June 29, 2009 Posted June 29, 2009 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!!
0 Horus Posted June 29, 2009 Posted June 29, 2009 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 SoNaR™ Posted June 29, 2009 Author Posted June 29, 2009 thnx horus i hope that will solve restarting in oly.... so i can find some piece!! thnx again...
0 SoNaR™ Posted June 29, 2009 Author Posted June 29, 2009 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 Aeolous Posted June 30, 2009 Posted June 30, 2009 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!
0 Horus Posted June 30, 2009 Posted June 30, 2009 Hm L2jFree have made new jailing & oly methods ^^ Oh well. Gotta update my svn ^^
0 SoNaR™ Posted June 30, 2009 Author Posted June 30, 2009 Thnx Aeolous i rly apreciate it!!! Well sorry but in clientpackets doesnt exist requestrestart.java should i create?? ;D ;D
Question
SoNaR™
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now