9
0
mirror of https://gitlab.com/SamB440/rpgregions-2.git synced 2026-01-04 15:31:38 +00:00
This commit is contained in:
SamB440
2021-03-30 18:30:37 +01:00
parent ca3125578a
commit 5a81311476
2 changed files with 1 additions and 5 deletions

View File

@@ -70,8 +70,7 @@ public interface IntegrationManager {
if (requirement.getPreventMessage() != null) {
String requirementMessage = MessageUtils.setPapi(player, requirement.getPreventMessage());
player.sendMessage(ChatColor.translateAlternateColorCodes('&', requirementMessage));
}
Translations.CANNOT_ENTER.send(player, requirement.getText(player));
} else Translations.CANNOT_ENTER.send(player, requirement.getText(player));
return false;
}
}

View File

@@ -6,7 +6,6 @@ import net.islandearth.rpgregions.gui.IGuiEditable;
import net.islandearth.rpgregions.gui.element.ICustomGuiFeedback;
import org.apache.commons.lang3.EnumUtils;
import org.apache.commons.lang3.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Nullable;
@@ -63,8 +62,6 @@ public abstract class RegionRequirement implements IGuiEditable, ICustomGuiFeedb
if (EnumUtils.isValidEnum(PreventType.class, input.toUpperCase())) {
this.preventType = PreventType.valueOf(input.toUpperCase());
return true;
} else {
player.sendMessage(ChatColor.RED + "That is not a valid prevent type.");
}
return false;
}