Check your Build Path and ensure the GTL jar is properly setup and imported into your Launcher class.
Your problem might be that Launcher can't find the MainLoader class, and thus can't instantiate a new instance of it.
|
Check your Build Path and ensure the GTL jar is properly setup and imported into your Launcher class.
Your problem might be that Launcher can't find the MainLoader class, and thus can't instantiate a new instance of it.
Got another error
Description Resource Path Location Type
Launcher cannot be resolved Regular.java src/com/rs/game/player/content/commands
The code:Wouldn't let me edit my above post for some reason, said message was too short..Code:if (cmd[0].equals("claimvote") || cmd[0].equals("checkvote") || cmd[0].equals("reward") || cmd[0].equals("claim")) { try { VoteReward reward = Launcher.vote.hasVoted(player.getUsername().toLowerCase().replaceAll(" ", "_"));
This is what I have used for the vote command:
Since your error is related to another class (Regular.java) as you have mentioned, I would suggest checking your formatting and ensuring all braces are properly closed. Braces that remain open can interfere with other code found in the same class, which may be invoking your Regular.java class.Code:if (cmd[0].equalsIgnoreCase("claim")) { try { VoteReward reward = Launcher.vote.hasVoted(player .getUsername().toLowerCase().replaceAll(" ", "_")); if (reward != null) { for (Player players : World.getPlayers()) { if (players != null) { players.getPackets() .sendGameMessage( player.getUsername() + "<col=000079><img=4> HAS CLAIMED HIS/HER VOTE REWARD!!!!!!"); } }
braces
lol
lol
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |