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

    • For the first time in thousands of posts I've read on this forum, I’ve actually found a message that is enriching on both a personal and professional level. I’ll take your advice to heart: I’m going to start creating more and stop overthinking things that get me nowhere. I totally agree about the toxic community; it's a shame. Time to keep working. Thanks a lot for your input.   Exactly, that’s why the Scryde method and their merge system work so well. People don't lose their progress and can still keep rushing new servers. Obviously, gameplay has mutated into something much faster-paced, but obviously, this happens in real life too, everyone is more accelerated and on edge. Thanks to social media and mental conditioning. But, well, it’s something we have to accept. Don't even get me started on gambling and online casinos; that’s a whole other topic regarding all the P2W servers.   Really, amen bro.
    • Hello, the server lifespan isn't something that only affects Argentina; just look at the South American and European communities. Those distant days you mentioned, when we were younger, which I completely agree with, are long gone. Today, the community plays RUSH for 30 or 60 days and seeks the adrenaline rush of starting over. As for free or paid packs, there are many options, but in all of them, you'll have to create your own unique style.  
    • Introducing: NimeraCP V2! What's New: Realtime Tickets (Receive + Send messages without refreshing page, instant delivery to player) Powered by WebSockets Realtime Rankings/Stats (Receive instant updates without refreshing page) Powered by WebSockets - PvP/Boss Rankings/Clan Rankings etc... oAuth Login + Register (VK, Discord, Google) Two Factor Authentication (Authenticator App) Passkey coming soon! Theme Editor New Arcade Game: Rock Paper Scissors Let players gamble wagering their topped up wallet balance! Discord Webhooks: Receive messages to discord via Bot or Webhook for certain events New Player registration New Payment received New Ticket Opened and more Complete UI Overhaul NimeracCP V2 is now fully multilangual supporting the following languages: English Ελληνικά Português / Brasileiro Español Русский Українська 한국어 Onboarding: Easy installation wizard via /onboarding on first use of the panel for easy installation. Feature Flags: You have full control over the UI. Disable/Enable pages + features via Admin CP CloudFlare R2 Bucket integration: The panel comes with Bucket storage integration for all kinds of assets uploaded to the panel.   A new website shop at https://nimeracp.com/ is also coming soon, including full installation docs.  You can join the discord for further updates/questions: https://discord.nimeracp.com/
    • thanks for choosing me ! 
  • 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..

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