Jump to content

Recommended Posts

Posted

update

 

Fix Trade pou eixate problima kai eixa 3exasi na anebaso to Dm event gi ayto mporei kapoia paidia na eixan kapoia error

 

Timeline

Flash 9a mpwrouses na m apantisis sto mnm pou s exw afisi gia t topic s? Thnx
Posted

Flash 9a mpwrouses na m apantisis sto mnm pou s exw afisi gia t topic s? Thnx

 

exo fix ayta me ta phx pou einai gnosta exo perasei kai ena java so warehouse  pou otan baleis items kai  pas na ta pareis 8elei 10s exo fix polla pragmata mporeis na deis kai st o timeline pou  edwsa poio pano  to noobish k ta server attacker  den ta exo fix akoma aytes tis meres 8a ta fix kai 8a einai ok to pack :P

Posted

exo fix ayta me ta phx pou einai gnosta exo perasei kai ena java so warehouse  pou otan baleis items kai  pas na ta pareis 8elei 10s exo fix polla pragmata mporeis na deis kai st o timeline pou  edwsa poio pano  to noobish k ta server attacker  den ta exo fix akoma aytes tis meres 8a ta fix kai 8a einai ok to pack :P

mporo na sta fix ego ;)

Posted

flash m vgazei ena error sto eclipse... sto com.Flash.gameserver.hadler kai akrivws sto AdminComandHadler.java ... ti error einai afto??? lookareto mia plzzz i pes m mipws einai diko m prob...

Posted
package com.Flash.gameserver.handler;

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Map;
import java.util.Properties;
import java.util.logging.Logger;

import javolution.util.FastMap;
import com.Flash.Config;
import com.Flash.gameserver.handler.admincommandhandlers.AdminDMEngine;   <------- edw einai to error..
import com.Flash.gameserver.model.actor.instance.L2PcInstance;

/**
* This class ...
*
* @version $Revision: 1.1.4.5 $ $Date: 2005/03/27 15:30:09 $
*/
public class AdminCommandHandler
{
private static Logger _log = Logger.getLogger(AdminCommandHandler.class.getName());

private static AdminCommandHandler _instance;

private Map<String, IAdminCommandHandler> _datatable;

   //Alt privileges setting
   private static Logger _priviLog = Logger.getLogger("AltPrivilegesAdmin");
   private static FastMap<String,Integer> _privileges;

public static AdminCommandHandler getInstance()
{
	if (_instance == null)
	{
		_instance = new AdminCommandHandler();
	}
	return _instance;
}

private AdminCommandHandler()
{
	_datatable = new FastMap<String, IAdminCommandHandler>();
	registerAdminCommandHandler(new AdminDMEngine());
}

public void registerAdminCommandHandler(IAdminCommandHandler handler)
{
	String[] ids = handler.getAdminCommandList();
	for (int i = 0; i < ids.length; i++)
	{
		if (Config.DEBUG) _log.fine("Adding handler for command "+ids[i]);
		_datatable.put(ids[i], handler);
	}
}

public IAdminCommandHandler getAdminCommandHandler(String adminCommand)
{
	String command = adminCommand;
	if (adminCommand.indexOf(" ") != -1) {
		command = adminCommand.substring(0, adminCommand.indexOf(" "));
	}
	if (Config.DEBUG)
		_log.fine("getting handler for command: "+command+
				" -> "+(_datatable.get(command) != null));
	return _datatable.get(command);
}

   /**
    * @return
    */
   public int size()
   {
       return _datatable.size();
   }

   public final boolean checkPrivileges(L2PcInstance player, String adminCommand)
   {
       //Only a GM can execute a admin command
       if (!player.isGM())
           return false;

       //Skip special privileges handler?
       if (!Config.ALT_PRIVILEGES_ADMIN || Config.EVERYBODY_HAS_ADMIN_RIGHTS)
           return true;

       if (_privileges == null)
           _privileges = new FastMap<String,Integer>();

       String command = adminCommand;
       if (adminCommand.indexOf(" ") != -1) {
           command = adminCommand.substring(0, adminCommand.indexOf(" "));
       }

       //The command not exists
       if (!_datatable.containsKey(command))
           return false;

       int requireLevel = 0;

       if (!_privileges.containsKey(command))
       {
           //Try to loaded the command config
           boolean isLoaded = false;

           try
           {
               Properties Settings   = new Properties();
               InputStream is          = new FileInputStream(Config.COMMAND_PRIVILEGES_FILE);
               Settings.load(is);
               is.close();

               String stringLevel = Settings.getProperty(command);

               if (stringLevel != null)
               {
                   isLoaded = true;
                   requireLevel = Integer.parseInt(stringLevel);
               }
           }
           catch (Exception e) { }

           //Secure level?
           if (!isLoaded)
           {
               if (Config.ALT_PRIVILEGES_SECURE_CHECK)
               {
                   _priviLog.info("The command '" + command + "' haven't got a entry in the configuration file. The command cannot be executed!!");
                   return false;
               }

               requireLevel = Config.ALT_PRIVILEGES_DEFAULT_LEVEL;
           }

           _privileges.put(command,requireLevel);
       }
       else
       {
           requireLevel = _privileges.get(command);
       }

       if (player.getAccessLevel() < requireLevel)
       {
           _priviLog.warning("<GM>" + player.getName() + ": have not access level to execute the command '" + command +"'");
           return false;
       }

       return true;
   }

gia lookare gt dn 3erw gt m to vgazei proti fora m to vgazei afto edw....

Posted

to fixara ego pedes.kante checkout pali.opos l2jattacker fixed.tora exoume to noobish error.se 5 lepta 8a ine gg

to fixares?? katse na dw k tha sou pw...
Guest
This topic is now closed to further replies.



  • Posts

    • ⚔️ LINEAGE II KHADIA ⚔️ Interlude PTS (L2OFF) • Mid Rate PvP • Custom Endgame Experience 🔥 NOT JUST ANOTHER SERVER — A REAL BATTLEFIELD 🔥 Welcome to L2Khadia, where classic Interlude meets competitive PvP and custom progression. No fake numbers, no empty promises — only action, economy, war and long-term gameplay. ━━━━━━━━━━━━━━━━━━━━━━ 📊 SERVER RATES EXP: x100 SP: x150 Adena: x300 Spoil: x15 ━━━━━━━━━━━━━━━━━━━━━━ ⚔️ WHY KHADIA? ✔ Original Interlude Mechanics & Formulas ✔ Mid Rate PvP Balance ✔ Real Clan Wars / Sieges / Olympiad ✔ Stable & Fair Economy ✔ Active Staff Team ✔ Long-Term Project Vision ━━━━━━━━━━━━━━━━━━━━━━ 🗡️ KHADIA CUSTOM CONTENT 🔥 Khadia Weapons – Unique power & visuals 🛡 Khadia Armor – Raid Boss drops & crafting 🧥 Khadia Cloaks – Endgame progression items 💎 Designed for competitive PvP ━━━━━━━━━━━━━━━━━━━━━━ 🎁 REWARD SYSTEMS 🏆 PvP / PK Reward System 📦 Daily PvP Reward Package 👑 Raid Package from Boss Extract Rewards 🗳 Vote Reward System 📈 Rankings: PvP / PK / Clans / Castles ━━━━━━━━━━━━━━━━━━━━━━ 💎 VIP FEATURES ✔ VIP Buff Coin ✔ Nick / Title Colors ✔ Special VIP Chat ( ^ Key ) ✔ Exclusive VIP Benefits ━━━━━━━━━━━━━━━━━━━━━━ 🎮 QUALITY OF LIFE ✔ Auto Loot for Farm ✔ Auto Loot Disabled for Raid Boss ✔ Offline Shop System ✔ Remote Buff Coin ✔ RaidBoss Status NPC ✔ PvP / PK Ranking NPC ━━━━━━━━━━━━━━━━━━━━━━ 🌍 FARM ZONES • Elven Fortress [80] – Medium • Cave of Trials [80+] – Party Hard • Monastery of Silence [80] – Medium • PvP Zones Around Raid Bosses ━━━━━━━━━━━━━━━━━━━━━━ 🏰 CLAN & SIEGE SYSTEM ✔ Full Interlude Clan System ✔ Max Clan Level 8 + Clan Skills ✔ Max 3 Clans per Alliance ✔ No Kick / Leave Penalty ✔ Weekly Castle Sieges ━━━━━━━━━━━━━━━━━━━━━━ 🚀 JOIN NOW – START YOUR LEGEND 🚀 🌐 Website: www.l2khadia.com 💬 Discord: https://discord.gg/DnZrgWn77n ━━━━━━━━━━━━━━━━━━━━━━ No Pay To Win • Fair Gameplay • Real PvP • Custom Endgame Content       We Wish you the best game ! 
    • First of all, he doesn’t even know English. He needs to learn it first.
    • Which copies are you talking about? Hahaha, stop crying, everyone knows you're a copy-paste, you can't even program "hello world".
    • Imagine if gustavo cuts cocaine and skylord stops flaming him and this two motherfuckers work together, they can do very good stuff... But.. yeah
  • 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..