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.


  • Posts

    • Rosyk or rusik or whatever u blaim me that my mouth stinks but I assume you the one who stinks and your perfect pack will be now shared and you can suck a DICK )  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Server and Datapack files.rar  https://eu2.contabostorage.com/d4b39866f6bb4084b6c969ec8fe20063:kita/Lucera_Classic_Remaster/Lucera Classic Remaster Eng Client.rar Drama link    For this crap u need Lucera 2 classic license ) people paying 300 euros for this shit  lol Some Shit will come out soon mxc website need shake it a bit coz getting boring here )    Whats happen rosyk lost speach  xD Your pack was downloded  29 times bussines  not going as plan xD?
    • @Huggo Thank you for asking! When you join our Discord, on the Nexus Marketing section there is a #work-showcase channel. There you can see a little bit of what we are able to produce as a final ready-to-post product.  There is also this link in my new personal montage YouTube channel, in which I will be uploading every recent work: https://youtube.com/playlist?list=PLkzBKexKw8Wj8dC2diYndd5yOWOXUQCJW&si=-HGxlovqzvD4qqy2 Two more videos are coming up this week, and a #reviews channel has opened for our clients to let other people know about their experience working with us. Feel free to join our Hub in Discord, and for any inquries you might have don't hesitate to contact me or post your suggestion at #suggestions channel.  
    • Следи за своим вонючим языком, мудак.   Your mouth stinks, go wash your mouth, it's a dump) I don't know who you are or what you are, and I don't recommend buying anything from people outside of my network, as they may sell garbage under the guise of my work. There have been cases where my sales have been compromised. Additionally, reselling below the purchase price has been prohibited. I wish you all the best and peace. I kindly request that the moderators close this topic, as it is no longer relevant and the contact information is outdated.    
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock