Skip to content

Commit 700e592

Browse files
authored
Ignore case-sensitivity on Clan Tags
Clan Tags are not case-sensitive (i.e. 1 user cannot have clan tag "Test" and another user have a clan with tag "TeSt") This update just makes it easier to give their clan members access as we found that .getTag() returns the tag in all lowercase while users were used to typing their tag with whatever casing they usually have on their tag.
1 parent 0e94bf6 commit 700e592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/me/crafter/mc/lockettepro/Dependency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public static boolean isSimpleClanOf(String line, Player player){
203203
if (clanplayer != null){
204204
Clan clan = clanplayer.getClan();
205205
if (clan != null){
206-
if (line.equals("[" + clan.getTag() + "]")) return true;
206+
if (line.equalsIgnoreCase("[" + clan.getTag() + "]")) return true;
207207
}
208208
}
209209
} catch (Exception e){}

0 commit comments

Comments
 (0)