-
Posts
187 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by DuRex
-
[Share]Flash Interlude Pack Server
DuRex replied to Flash™'s topic in Server Development Discussion [Greek]
to mmocore to vgalate apo to svn?? tha to kanete 3ana add?? -
[Share]Giorgaras323 Collection!
DuRex replied to Bearus's topic in Server Development Discussion [Greek]
enta3ei xalarose... dn se eipa k kampouri.. wreos sinexise etc na voithiseis ligo sto greek develop section... telos edw to thema.. apo edw k pera ontopic.. -
[Share]Flash Interlude Pack Server
DuRex replied to Flash™'s topic in Server Development Discussion [Greek]
to fixares?? katse na dw k tha sou pw... -
[Share]Flash Interlude Pack Server
DuRex replied to Flash™'s topic in Server Development Discussion [Greek]
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.... -
[Share]Giorgaras323 Collection!
DuRex replied to Bearus's topic in Server Development Discussion [Greek]
koita re to pistepse o psaraklas flaming... :P btw ela re k esi flaming mn spamareis krima einai... -
re ZeRo* ti tha patheis an doseis alla 20E parapanw?? outos i allos tha dwseis 70E kai tha pareis ixeia pistevo einai ligo xeirotera apo afta pou sou eipe o krash.. mazepse alla 20E k pare afta pou sou eipe o krash tha sou erthoun kalitera....
-
[Share]Flash Interlude Pack Server
DuRex replied to Flash™'s topic in Server Development Discussion [Greek]
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... -
einai makran ta kalitera pou exei vgalei i microsoft kata tn gnomi m..
-
epe3ergastis 2os... ram 1o.. kai apo karta grafikon i 2i einai poli kali gia games apo ta xaraktiristika tis... elpizo na diale3eis kala ilika gia to pc sou.. gl..
-
oxi mono k gia pio pro pragmata... katarxas hacker eseis dn to exete parei me tn sosti k tn kanoniki ennoia tou.. hacker einai aftos pou ftiaxnei programs gia na kanei ena kalo pragma.. creacker i tracker legete aftos pou thelei na xalasei tn douleia enos allou px ta crack pou exoume gia merika progs i games apo pou dimiourgithikan apo hackers i apo creackers / trackers?? opote i ennoia hackers dn paei se aftous pou xalane kati alla se ekeinous pou ftiaxnoun ena prog gia na voithisi merikous allous.. (sxoliaste na to sizitisoume..)
-
this is greaaat meng.. keep it up your awesome work... gj devangell...
-
[Share] RUB,USD,EUR,UAH (Interlude)
DuRex replied to Ceptimus's topic in Client Development Discussion
this is a good share.. ty again ceptimus.. you help very much at client mod section.. keep it up.. -
wow this is amazing traitor good job and to you and to devangell.. keep it up...
-
wow this is great... ty for share Ceptimus..
-
what is unichat?? btw tha hears good. :P.. explain me what is unichat??
-
[Share]GlowList (with effect names) *UPDATED
DuRex replied to LauQ's topic in Client Development Discussion
rugina stop double stop nab... btw great glowlist lauQ very nice.. ty very much.. -
nice wings mate keep it up..
-
sto eixa pei egw k dn me akouges... btw afto to site einai wreo m aresei.. :P
-
[Share]Giorgaras323 Collection!
DuRex replied to Bearus's topic in Server Development Discussion [Greek]
dn se skilovrizo... mn to perneis etc... aplws anti na to kaneis apo tora k na erthei kapoios na sto kanei lock to kaneis olo mazi mia k kali... teCpa arkei na to kaneis update.. -
ohh come on commodus its greek section... btw if dont want the 000webhost use www.freehostia.com ..
-
kala akougontai afta.. mpravo re man pou mas to eipes idika me tn kamael pou klevei ta skills :P...
-
re paidia afto to topic einai kairo k mporei na to exei diorthosei o admin tou... an k dn pistevo.. btw an to periegrafes ligo kalitera k to katalavename tha to dokimaza...
-
lol afto einai kaloutsiko alla oxi k poli trelo gia na pianei se allous final server.. btw kalo gia na pernas tn wra sou :P..
-
ela tora epeidi eisai o admin tou server spamareis?? kopse tis vlakeies... file m dn kaneis tpt lathos... exei polla protections o server.. episis einai poli diskolo na vreis kati lathos ekei mesa...