So I took the class from this post - TriviaBot [REQUESTED]
And this is the error I get.
Code:
src\server\model\players\packets\Commands.java:40: error: cannot find symbol
if (playerCommand.startysWith("/") && playerCommand.length() > 1
) {
^
symbol: method startysWith(String)
location: variable playerCommand of type String
src\server\model\players\packets\Commands.java:382: error: cannot find symbol
TriviaBot.attemptAnswer(((Player)c), text);
^
symbol: variable text
location: class Commands
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Press any key to continue . . .
_________________________
Commands.java
[Yes, I imported the minigame folder]
Code:
if (playerCommand.startsWith("yell")) {
if (Connection.isMuted(c)) {
c.sendMessage("You are muted and can not yell.");
return;
}
for (int j = 0; j < Server.playerHandler.players.length; j++) {
if (Server.playerHandler.players[j] != null) {
Client c2 = (Client)Server.playerHandler.players[j];
if (c.playerRights == 0){
}
if (TriviaBot.acceptingQuestion()) {
TriviaBot.attemptAnswer(((Player)c), text);
}
if (c.playerName.equalsIgnoreCase("Eclipse")){
c2.sendMessage("<img=2><shad=16767232>[Game Master] </shad><shad=47848>"+ Misc.optimizeText(c.playerName) +":</col><shad=52992> "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("resolution")){
c2.sendMessage("<col=255>[Creator]</col>"+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("Subway")){
c2.sendMessage("<shad=16762624><img=2>[Staff Captain]</shad><shad=38143> "+ Misc.optimizeText(c.playerName) +"</shad><shad=16711935>: "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("toxfire")){
c2.sendMessage("<shad=16762624><img=2>[Director]</shad><shad=38143> "+ Misc.optimizeText(c.playerName) +"</shad><shad=16711935>: "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("tacos")){
c2.sendMessage("<shad=16711935><img=2>[Co<shad=0>-</col>Owner]</col><img=2><shad=16740352> "+ Misc.optimizeText(c.playerName) +": </col><shad=45490>"
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("hobune")){
c2.sendMessage("<shad=45490> "+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("rza")){
c2.sendMessage("<shad=28672><img=0>[Wu Tang]<img=0>"+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("jesus le 2nd")){
c2.sendMessage("<shad=53424>[Le Troll]</shad><shad=0> "+ Misc.optimizeText(c.playerName) +":</shad><shad=16711715> "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("area")){
c2.sendMessage("<shad=13041664><img=1>[Moderator]<img=1></shad><shad=255> "+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("boss")){
c2.sendMessage("<shad=255><img=0>[The beast]<img=0> "+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerName.equalsIgnoreCase("kto")){
c2.sendMessage("<shad=4522086>"+ Misc.optimizeText(c.playerName) +":</shad><shad=16767232> "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerRights == 0){
c2.sendMessage("<shad=49920>[Epic Player] </col>"+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerRights == 1){
c2.sendMessage("<shad=11227410><img=1>[Moderator]<img=1> <shad=10092727> "+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerRights == 9){
c2.sendMessage("<shad=255><img=2>[Trial Admin]<img=2>"+ Misc.optimizeText(c.playerName) +":</shad><shad=8216832> "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerRights == 2){
c2.sendMessage("<shad=35695415><img=2>[Director]</col><img=2>"+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerRights == 4){
c2.sendMessage("<shad=11227410><img=0>[Sexy Donator]<img=0></col><shad=10092727>"+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}else if (c.playerRights == 5){
c2.sendMessage("<shad=60811334>[Server Sponsor]</col><img=3>"+ Misc.optimizeText(c.playerName) +": "
+ Misc.optimizeText(playerCommand.substring(5)) +"");
}
}
}
}