mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 02:25:49 +01:00
Fixed prefix
This commit is contained in:
parent
4b28ed98a9
commit
734337a5be
@ -13,7 +13,7 @@ public class PluginMessages {
|
|||||||
ConfigAccessor config = new ConfigAccessor(this.plugin, "config.yml");
|
ConfigAccessor config = new ConfigAccessor(this.plugin, "config.yml");
|
||||||
this.useCustomPrefix = config.getConfig().getBoolean("UseCustomPrefix");
|
this.useCustomPrefix = config.getConfig().getBoolean("UseCustomPrefix");
|
||||||
if (useCustomPrefix) {
|
if (useCustomPrefix) {
|
||||||
PluginMessages.customPrefixFail = config.getConfig().getString("CustomPrefix").replaceAll("&", "\u00A7");
|
PluginMessages.customPrefix = config.getConfig().getString("CustomPrefix").replaceAll("&", "\u00A7");
|
||||||
PluginMessages.customPrefixFail = config.getConfig().getString("CustomPrefixFail").replaceAll("&", "\u00A7");
|
PluginMessages.customPrefixFail = config.getConfig().getString("CustomPrefixFail").replaceAll("&", "\u00A7");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -382,7 +382,7 @@ public class Portal {
|
|||||||
/*if((permission == null || (permission != null && player.hasPermission(permission)) || player.isOp())){*/
|
/*if((permission == null || (permission != null && player.hasPermission(permission)) || player.isOp())){*/
|
||||||
// 3 checks, 1st is if it doesnt need perms. 2nd is if it does do they have it. And third is are they op.
|
// 3 checks, 1st is if it doesnt need perms. 2nd is if it does do they have it. And third is are they op.
|
||||||
if (!(permission == null || (permission != null && player.hasPermission(permission)) || player.isOp())) {
|
if (!(permission == null || (permission != null && player.hasPermission(permission)) || player.isOp())) {
|
||||||
player.sendMessage(PluginMessages.customPrefix + "\u00A7c You do not have permission to use this portal!");
|
player.sendMessage(PluginMessages.customPrefixFail + "\u00A7c You do not have permission to use this portal!");
|
||||||
failSound(player, portal);
|
failSound(player, portal);
|
||||||
throwPlayerBack(player);
|
throwPlayerBack(player);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user