Jump to content

Recommended Posts

Posted (edited)

Replace this part of the code :

    private void ReloadData()
        {
        try (Connection con = L2DatabaseFactory.getInstance().getConnection())
            {
            PreparedStatement statement = con.prepareStatement("SELECT char_name, pvpkills, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY pvpkills DESC, char_name ASC LIMIT 10");
            ResultSet result = statement.executeQuery();
            
            //refreshing top pvp list
            int i = 0; //index of array
            
            while (result.next())
                {
                topPvPList[i] = new PlayerInfo(i+1,result.getString("char_name"),result.getInt("pvpkills"),0,0,result.getBoolean("online"));
                i++;
                }
                    
            //refreshing top pk list
            statement = con.prepareStatement("SELECT char_name, pkkills, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY pkkills DESC, char_name ASC LIMIT 10");
            result = statement.executeQuery();
            
            i = 0; //index of array
            while (result.next())
                {
                topPkList[i] = new PlayerInfo(i+1,result.getString("char_name"),0,result.getInt("pkkills"),0,result.getBoolean("online"));
                i++;
                }
            
            //refreshing top online list
            statement = con.prepareStatement("SELECT char_name, onlinetime, accesslevel, online FROM characters WHERE accesslevel = '0' ORDER BY onlinetime DESC, char_name ASC LIMIT 10");
            result = statement.executeQuery();
            
            i = 0; //index of array

and it will exclude entries with accesslevel >0

Edited by StaticX
  • 5 weeks later...
  • 1 year later...
Posted (edited)

anyone help me to fix on frozen?

wtf.png

i add one password changer and work perfect.

LOGGER.warn( i add this to ranking and not fixed. how can i fix?

edit* fixed

Edited by PaRaNoiC*
  • 2 weeks later...
Posted (edited)
2 minutes ago, PaRaNoiC* said:

anyone know how to fix this error in ThreadPoolManager?

ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new RefreshAllLists(), 10000, delayForCheck * 60000);

http://prntscr.com/hlpod9

 

ThreadPool.scheduleAtFixedRate

 

 

Edited by Zacapa
Posted (edited)
8 minutes ago, Zacapa said:

ThreadPool.scheduleAtFixedRate

http://prntscr.com/hlpqpc

 

http://prntscr.com/hlpqt9 what import press here?

 

 

edit 

fixed. thanks you and melron for help me i add import net.sf.l2j.commons.concurrent.ThreadPool; and fixed

Edited by PaRaNoiC*
Posted
6 minutes ago, PaRaNoiC* said:


 

import net.sf.l2j.commons.concurrent.ThreadPool;
ThreadPool.scheduleAtFixedRate(new RefreshAllLists(), 10000, delayForCheck * 60000);

 

 

  • 4 weeks later...
  • Vision locked this topic
Guest
This topic is now closed to further replies.



  • Posts

    • I didn't use AI for this, I used untitledui, they have ready templates and blocks. And no, it's not shadcn, untitledui has their own design system.   For example, for the hero I used an iteration of this https://www.untitledui.com/react/marketing/hero-header-sections/hero-abstract-angles-04
    • A misaligned badge or a heavy shadow is not evidence of AI. If anything, small inconsistencies are usually proof of years of manual modifications layered over an old codebase. AI-generated UIs tend to be overly clean, symmetrical, and generic because models optimize for visual patterns, not long-term product evolution. What you’re calling “AI design” is actually a very common style in older gaming communities: strong gradients, metallic buttons, glow effects, dense information blocks, and high visual emphasis on rankings/votes/sponsors.    Also, good UI is contextual. A toplist platform for MMORPG servers is optimized differently than a modern SaaS dashboard or a portfolio site. Here, visibility, CTR, sponsor highlighting, fast scanning, and information density matter more than minimalist whitespace trends from Dribbble. And honestly, if the UI was actually generated by AI, it probably would’ve looked more modern and generic — not like a platform that clearly evolved piece by piece over many years 😄   The funny thing is that a lot of these new “AI web designers” can’t even write 20 lines of CSS by hand without ChatGPT holding their hand 😄    They see a shadow, a gradient, or a rounded border and instantly scream “AI-generated” because their entire understanding of design now comes from prompting tools instead of actually building interfaces from scratch. And honestly, @Elfo was right — your own website looks far more AI-generated you built it with Tailwind/shadcn-style aesthetics and probably Next.js ,m i right friend? you built it with Tailwind/shadcn-style aesthetics...  You literally scanned the entire site just to find a tiny shadow behind a button as “proof” 😂 Real developers know the difference between a handcrafted project that evolved over many years, and a generic AI-generated template pumped out in 30 seconds.       Anyway, no hard feelings. Different tastes, different opinions 🙂
  • Topics

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