Skip to content

Commit

Permalink
Changed Variable Name
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Jun 4, 2021
1 parent b027427 commit bf7c3ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public void execute(CommandSender sender, String[] args) {
} else if (!IridiumSkyblock.getInstance().getIslandManager().getIslandPermission(island.get(), user, IridiumSkyblock.getInstance().getPermissions().invite, "invite")) {
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().cannotInviteMember.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
} else if (islandMembers.size() >= memberLimit) {
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().islandTeamFull.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().islandMemberLimitReached.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
} else {
IslandInvite islandInvite = new IslandInvite(island.get(), offlinePlayerUser, user);
IridiumSkyblock.getInstance().getDatabaseManager().getIslandInviteTableManager().addEntry(islandInvite);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void execute(CommandSender sender, String[] args) {
IslandUpgrade islandUpgrade = IridiumSkyblock.getInstance().getIslandManager().getIslandUpgrade(island.get(), "member");
int memberLimit = IridiumSkyblock.getInstance().getUpgrades().memberUpgrade.upgrades.get(islandUpgrade.getLevel()).amount;
if (!user.isBypass() && island.get().getMembers().size() >= memberLimit) {
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().islandTeamFull.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
player.sendMessage(StringUtils.color(IridiumSkyblock.getInstance().getMessages().islandMemberLimitReached.replace("%prefix%", IridiumSkyblock.getInstance().getConfiguration().prefix)));
return;
}
// Send a message to all other members
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class Messages {
public String alreadyInYourIsland = "%prefix% &7This player is already a member of your Island.";
public String inviteRevoked = "%prefix% &7Island invite for %player% has been revoked.";
public String noActiveInvite = "%prefix% &7%player% has no active invite for your island.";
public String islandTeamFull = "%prefix% &7The island max member count has been reached.";
public String islandMemberLimitReached = "%prefix% &7The island max member count has been reached.";
public String alreadyInvited = "%prefix% &7You have already invited this user to your island.";
public String playerJoinedYourIsland = "%prefix% &7%player% has joined your island!";
public String noInvite = "%prefix% &7You have not been invited to this island.";
Expand Down

0 comments on commit bf7c3ed

Please sign in to comment.