Jump to content

Recommended Posts

Posted

as i said before, use just one class. There, a static FastList<InetAddress> ips = new FastList<InetAddress>();

 

on cmd use

 

if(!YourEngineClass.ips.contains(player.getClient().getConnection().getInetAddress()) {

        YourEngineClass.ips.add(player.getClient().getConnection().getInetAddress());

        cmdstuff..

}

 

A List talking in java api terminology, is a Generic type, which implements the Collection interface

Posted

its a good idea, but dumb at the same time... like takhs7 said... the server would be restarting all the time b'coz ppl would find that interesting and they would restart it just for fun... but thats not all, they could exploit this option for example: bosses or something...

 

i've got takhs7's back for auto restarts =)

 

regardless, thank you for sharing!

Posted

on server start up

 

long minimunNonRestartTime = System.currentTimeMillis() + Config.MIN_RESTART_DELAY;

 

On cmd use:

 

if(System.currentTimeMillis() < YourEngineClass.minimunNonRestartTime) {

              player.sendMessage("Server restarted not much ago!");

              return false;

}

 

Fixed :)

 

Posted

1) You better  create a diff

2) You can handle all this engine within one class, avoiding creating new objects (1 objects is not problem, but avoid it its better than create)

3) Ppl cry when L2PcInstance is modified (cause update conflicts). Just make a list where all players who voted get inside.

On cmd use, if (list.contains(player)) return false;

 

for everything else, nice idea, really usefull

 

 

4) maybe make the vote number depend on how much online ppl...

 

anyway.. im rlly surprised you had the guts to do it without logging ips in the first place =P

Posted

Just merge it all into 2classes.

Some of those classes can be nested so it makes no sense.

The more classes you make the more problems you'll have ^^

  • 3 months later...
Posted

Nice dig-up. Another protection against stupid-restart from players, would be to introduced a derivative in the voting system. Votings can clear every 2 mins. Each 2 mins the system checks the votes/time, if that number is high, then it means that many people voted during that time. In other words it doesnt measure the "votes" in a long duration , but the votes/time. Usually votes/time will be high only when teh server starts lagging.

  • 8 months later...
Posted

Ποτε δεν ειχα φανταστει εναν τετοιο code (θεμα φαντασιας).

Απλα απιθανη δουλεια φιλε μου mossano.

Τελεια δουλεια οταν Κολαει ο σερβερ και δεν ειναι μεσα ο game master.

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
Reply to this topic...

×   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.




  • Posts

    • That's exactly how it’s designed — everything important is handled on the API server side, for example, processing requests to the game server. Each website has its own token/key for authentication; without it, there will be no interaction with the game server. Some data can be stored both on my side and on the server side to avoid making frequent requests to the server, which is logical.   Yes, there’s a lot of old, unused code that just needs to be cleaned up. It was used before, but after major rewrites it was left lying around. It doesn’t interfere with anything — it’s just there and doesn’t affect the system's operation.   Beaver meme kurwa is my favorite. Unfortunately, you don't know Russian — otherwise, you would’ve spotted even more Easter eggs. 😂   I said it’s been installed over 250 times on different domains. You can join my Telegram, there are almost 200 people there — and those are just the ones who entered the chat — and we’ll have a good laugh together at your doubts! 😂😂😂
    • Discord : utchiha_market Telegram : https://t.me/utchiha_market Auto Buy Store : https://utchihamkt.mysellauth.com/ Join our server for more products : https://discord.gg/qtkJASMbKV https://campsite.bio/utchihaamkt  
    • Discord : utchiha_market Telegram : https://t.me/utchiha_market Auto Buy Store : https://utchihamkt.mysellauth.com/ Join our server for more products : https://discord.gg/qtkJASMbKV https://campsite.bio/utchihaamkt  
    • i saw somewhere that: $var = (int) $_POST['some_id'] ?? string::error_class('text'); it was when i gave up and deleted the sources let him, he does not even understand what cross site or mitm means   still waiting for any client of yours so i can play with them     DUDE IM GONNA CALL YOU BoberKurwa FROM NOW ON!! rename your account aswell! BoberKurwa!   Note: what happend to your chatgpt answers boberkurwa did your subscription of $12.5/$20 ended?   it is PSR12 standard
  • Topics

×
×
  • Create New...