Im makeing a rank plugin and im folowing a turtorial and there exactly how it says.
Code is below
package com.gem.plugin;
import org.bukkit.ChatColor;
public enum Rank {
OWNER("Owner", ChatColor.RED),
ADMIN("Admin", ChatColor.DARK_GREEN),
MANAGER("Manager", ChatColor.DARK_RED),
BUILDER("Bulider", ChatColor.YELLOW),
GOD("God", ChatColor.LIGHT_PURPLE),
ICE("Ice", ChatColor.BLUE),
private String name; Error on this line
private ChatColor color;
private Rank(String name, ChatColor color) {
this.name = name;
this.color = color;
}
public String getName() { return name; }
public ChatColor getColor() { return color; }
}
Code is below
package com.gem.plugin;
import org.bukkit.ChatColor;
public enum Rank {
OWNER("Owner", ChatColor.RED),
ADMIN("Admin", ChatColor.DARK_GREEN),
MANAGER("Manager", ChatColor.DARK_RED),
BUILDER("Bulider", ChatColor.YELLOW),
GOD("God", ChatColor.LIGHT_PURPLE),
ICE("Ice", ChatColor.BLUE),
private String name; Error on this line
private ChatColor color;
private Rank(String name, ChatColor color) {
this.name = name;
this.color = color;
}
public String getName() { return name; }
public ChatColor getColor() { return color; }
}
4
Finish the name list before with semicolon (;) not with comma (,).
Thank you for your advice.
I forgot about the semicolon.
The video acctully showed that I probablly didnt pay enough atention.
I forgot about the semicolon.
The video acctully showed that I probablly didnt pay enough atention.
why not use a plugin that already deals with ranks?
Becuase I wanted to make some plugins.
