1

I need help with code

Maxcraft4 10/25/18 4:06 am
214
10/26/2018 8:54 pm
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; }

}

Posted by
Maxcraft4
Level 1 : New Network
2

  Have something to say?

JoinSign in

4

Gerhard_
10/25/2018 1:16 pm
Level 1 : New Miner
Finish the name list before with semicolon (;) not with comma (,).
2
Maxcraft4
10/26/2018 6:16 pm
Level 1 : New Network
Thank you for your advice.
I forgot about the semicolon.
The video acctully showed that I probablly didnt pay enough atention.
1
star_weaver
10/25/2018 9:31 am
She/Her • Level 27 : Expert Princess Button Pusher
why not use a plugin that already deals with ranks?
2
Maxcraft4
10/26/2018 6:16 pm
Level 1 : New Network
Becuase I wanted to make some plugins.
1

Welcome