Jump to content
  • 0

[help]script error


Question

Posted

I have added TvT admin commands.

package handlers.admincommandhandlers;

there

 

when i Added the full code,it give me an error here :

public class AdminTvTEvent implements IAdminCommandHandler

 

AdminTvTEvent

Is marked Red and it give script error,which i cannot compile.

 

The Compile error is :

 

Buildfile: C:\Users\Gunar\workspace\L2J_Server_Ber\build.xml

clean:

  [delete] Deleting directory C:\Users\Gunar\workspace\L2J_Server_Ber\build

checkRequirements:

getChangelogDateVersion:

    [exec] Result: 1

    [exec] Result: 1

init:

    [mkdir] Created dir: C:\Users\Gunar\workspace\L2J_Server_Ber\build

    [mkdir] Created dir: C:\Users\Gunar\workspace\L2J_Server_Ber\build\classes

compile:

    [javac] Compiling 1529 source files to C:\Users\Gunar\workspace\L2J_Server_Ber\build\classes

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminCommandHandler.java:90: error: class AdminTvTEvent is public, should be declared in a file named AdminTvTEvent.java

    [javac] public class AdminTvTEvent implements IAdminCommandHandler

    [javac]        ^

    [javac] 1 error

 

BUILD FAILED

5 answers to this question

Recommended Posts

  • 0
Posted

[javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminCommandHandler.java:90: error: class AdminTvTEvent is public, should be declared in a file named AdminTvTEvent.java

 

you need make a one java file called AdminTvTEvent.java, thats why you get this error.

  • 0
Posted

AdminTvTEvent.java should be created in handler folder, exactly should look like this java\com\l2jserver\gameserver\handler\AdminTvTEvent.java :)

  • 0
Posted

I have added it and now when I try to compile I get the next error....

 

Buildfile: C:\Users\Gunar\workspace\L2J_Server_Ber\build.xml

clean:

  [delete] Deleting directory C:\Users\Gunar\workspace\L2J_Server_Ber\build

checkRequirements:

getChangelogDateVersion:

    [exec] Result: 1

    [exec] Result: 1

init:

    [mkdir] Created dir: C:\Users\Gunar\workspace\L2J_Server_Ber\build

    [mkdir] Created dir: C:\Users\Gunar\workspace\L2J_Server_Ber\build\classes

compile:

    [javac] Compiling 1535 source files to C:\Users\Gunar\workspace\L2J_Server_Ber\build\classes

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:92: error: cannot find symbol

    [javac] if (L2Event.eventState != EventState.OFF)

    [javac]           ^

    [javac]  symbol:  variable eventState

    [javac]  location: class L2Event

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:92: error: cannot find symbol

    [javac] if (L2Event.eventState != EventState.OFF)

    [javac]                                     ^

    [javac]  symbol:  variable OFF

    [javac]  location: class L2Event.EventState

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:208: error: cannot find symbol

    [javac] L2Event._npcId = Integer.parseInt(st.nextToken());

    [javac]       ^

    [javac]  symbol:  variable _npcId

    [javac]  location: class L2Event

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:209: error: cannot find symbol

    [javac] L2Event._teamsNumber = Integer.parseInt(st.nextToken());

    [javac]       ^

    [javac]  symbol:  variable _teamsNumber

    [javac]  location: class L2Event

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:226: error: cannot find symbol

    [javac] L2Event._teamNames.put(i++, temp2.substring(1, temp2.length() - 1));

    [javac]                   ^

    [javac]  symbol:  method put(Integer,String)

    [javac]  location: variable _teamNames of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:230: error: cannot find symbol

    [javac] activeChar.sendMessage(L2Event.startEventParticipation());

    [javac]                               ^

    [javac]  symbol:  method startEventParticipation()

    [javac]  location: class L2Event

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:269: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(teamId))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:271: error: cannot find symbol

    [javac] player.setTitle(L2Event._teamNames.get(teamId));

    [javac]                                   ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teamNames of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:286: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:291: error: cannot find symbol

    [javac] player.getEventStatus().eventSitForced = !player.getEventStatus().eventSitForced;

    [javac]                       ^

    [javac]  symbol:  variable eventSitForced

    [javac]  location: class Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:291: error: cannot find symbol

    [javac] player.getEventStatus().eventSitForced = !player.getEventStatus().eventSitForced;

    [javac]                                                                 ^

    [javac]  symbol:  variable eventSitForced

    [javac]  location: class Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:292: error: cannot find symbol

    [javac] if (player.getEventStatus().eventSitForced)

    [javac]                           ^

    [javac]  symbol:  variable eventSitForced

    [javac]  location: class Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:306: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:317: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:336: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:355: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:375: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:390: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(Integer.parseInt(st.nextToken())))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:612: error: cannot find symbol

    [javac] for (L2PcInstance player : L2Event._teams.get(team))

    [javac]                                         ^

    [javac]  symbol:  method get(int)

    [javac]  location: variable _teams of type Object

    [javac] C:\Users\Gunar\workspace\L2J_Server_Ber\java\com\l2jserver\gameserver\handler\AdminEventEngine.java:618: error: cannot find symbol

    [javac] num = n * player.getEventStatus().kills.size();

    [javac]                                 ^

    [javac]  symbol:  variable kills

    [javac]  location: class Object

    [javac] 20 errors

 

BUILD FAILED

 

When I click on the error it goes to notepad ++ file,how can i open it throw eclipse and fix the errors?

Guest
This topic is now closed to further replies.
×
×
  • Create New...