Fixed Indents on all files using the reformat option and optimized imports

This commit is contained in:
Liz3
2019-03-03 04:51:21 +01:00
parent bb7d32bb92
commit c6512bf316
232 changed files with 26900 additions and 26895 deletions

View File

@@ -3,40 +3,40 @@ package com.massivecraft.factions.struct;
import com.massivecraft.factions.zcore.util.TL;
public enum ChatMode {
MOD(4, TL.CHAT_MOD),
FACTION(3, TL.CHAT_FACTION),
ALLIANCE(2, TL.CHAT_ALLIANCE),
TRUCE(1, TL.CHAT_TRUCE),
PUBLIC(0, TL.CHAT_PUBLIC);
MOD(4, TL.CHAT_MOD),
FACTION(3, TL.CHAT_FACTION),
ALLIANCE(2, TL.CHAT_ALLIANCE),
TRUCE(1, TL.CHAT_TRUCE),
PUBLIC(0, TL.CHAT_PUBLIC);
public final int value;
public final TL nicename;
public final int value;
public final TL nicename;
ChatMode(final int value, final TL nicename) {
this.value = value;
this.nicename = nicename;
}
ChatMode(final int value, final TL nicename) {
this.value = value;
this.nicename = nicename;
}
public boolean isAtLeast(ChatMode role) {
return this.value >= role.value;
}
public boolean isAtLeast(ChatMode role) {
return this.value >= role.value;
}
public boolean isAtMost(ChatMode role) {
return this.value <= role.value;
}
public boolean isAtMost(ChatMode role) {
return this.value <= role.value;
}
@Override
public String toString() {
return this.nicename.toString();
}
@Override
public String toString() {
return this.nicename.toString();
}
public ChatMode getNext() {
if (this == PUBLIC) {
return ALLIANCE;
}
if (this == ALLIANCE) {
return FACTION;
}
return PUBLIC;
}
public ChatMode getNext() {
if (this == PUBLIC) {
return ALLIANCE;
}
if (this == ALLIANCE) {
return FACTION;
}
return PUBLIC;
}
}