Welcome!

Join our community of MMORPG enthusiasts and private server developers! By registering, you'll gain access to in-depth discussions on source codes, binaries, and the latest developments in MMORPG server files. Collaborate with like-minded individuals, explore tutorials, and share insights on building and optimizing private servers. Join us today and unlock the full potential of MMORPG server development!

Join Today!

How to add a new admincommand?

Status
Not open for further replies.
Initiate Mage
Joined
Dec 23, 2011
Messages
1
Reaction score
0
For example, I want to add the "Appearance" command created by Divinity.
And I want to add the admincommand on my customize server.
As I copy the Appearance.java to the script folder, what else i need to config?

As i got this error message when i test to run it.
Code:
[INFO] 2011-12-26 16:52:39 - gameserver.utils.chathandlers.ChatHandlersLoader:85 - Loaded 0 admin command and 16 user command handlers.
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : variable COMMAND_APPEARANCE
location: class gameserver.configs.administration.AdminConfig
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 24
Column: 49
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : method getSavedPlayerAppearance()
location: class gameserver.model.gameobjects.player.Player
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 48
Column: 72
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : method setPlayerAppearance(gameserver.model.gameobjects.player.PlayerAppearance)
location: class gameserver.model.gameobjects.player.Player
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 57
Column: 31
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : method setSavedPlayerAppearance(<nulltype>)
location: class gameserver.model.gameobjects.player.Player
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 60
Column: 31
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : method getSavedPlayerAppearance()
location: class gameserver.model.gameobjects.player.Player
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 81
Column: 27
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: clone() has protected access in java.lang.Object
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 82
Column: 92
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : method setSavedPlayerAppearance(gameserver.model.gameobjects.player.PlayerAppearance)
location: class gameserver.model.gameobjects.player.Player
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 82
Column: 31
[ERROR] 2011-12-26 16:52:39 - commons.scripting.impl.javacompiler.ErrorListener:37 - Java Compiler ERROR: cannot find symbol
symbol  : method setPlayerAppearance(gameserver.model.gameobjects.player.PlayerAppearance)
location: class gameserver.model.gameobjects.player.Player
Source: /C:/AionChs/EMU/gameserver/data/scripts/system/handlers/admincommands/Appearance.java
Line: 259
Column: 23
[ERROR] 2011-12-26 16:52:40 - gameserver.utils.ThreadUncaughtExceptionHandler:39 - Critical Error - Thread: main terminated abnormaly: gameserver.GameServerError: Can't initialize chat handlers.
gameserver.GameServerError: Can't initialize chat handlers.
	at gameserver.utils.chathandlers.ChatHandlers.createChatHandlers(ChatHandlers.java:86)
	at gameserver.utils.chathandlers.ChatHandlers.<init>(ChatHandlers.java:52)
	at gameserver.utils.chathandlers.ChatHandlers.<init>(ChatHandlers.java:35)
	at gameserver.utils.chathandlers.ChatHandlers$SingletonHolder.<clinit>(ChatHandlers.java:121)
	at gameserver.utils.chathandlers.ChatHandlers.getInstance(ChatHandlers.java:45)
	at gameserver.GameServer.main(GameServer.java:187)
Caused by: java.lang.RuntimeException: Error while compiling classes
	at commons.scripting.impl.javacompiler.ScriptCompilerImpl.doCompilation(ScriptCompilerImpl.java:198)
	at commons.scripting.impl.javacompiler.ScriptCompilerImpl.compile(ScriptCompilerImpl.java:161)
	at commons.scripting.impl.ScriptContextImpl.init(ScriptContextImpl.java:131)
	at commons.scripting.scriptmanager.ScriptManager.load(ScriptManager.java:78)
	at gameserver.utils.chathandlers.ChatHandlers.createChatHandlers(ChatHandlers.java:82)
	... 5 more
 
Status
Not open for further replies.
Back