From 4b28ed98a91250c1061d7f1dce50ddd3b8906646 Mon Sep 17 00:00:00 2001 From: Alastair Date: Mon, 20 Nov 2017 18:50:32 +0000 Subject: [PATCH 1/2] Changed readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6f0d75b..d6561ed 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Advanced Portals ![Build Status](https://travis-ci.org/sekwah41/Advanced-Portals Global Plugin Stats +The api isn't implemented in this version, sorry for any inconvenience. Check the recode tree for possibly a working recode at some point. +

To get the needed bukkit versions download the spigot buildtools and run the appropriate commands for the versions listed in the pom file.

e.g. "java -jar BuildTools.jar --rev 1.10.2" (Enter this into git bash)

From 734337a5bef16217d8acee5508b5aa2cb2aa29cf Mon Sep 17 00:00:00 2001 From: Alastair Date: Mon, 20 Nov 2017 20:45:19 +0000 Subject: [PATCH 2/2] Fixed prefix --- src/com/sekwah/advancedportals/PluginMessages.java | 2 +- src/com/sekwah/advancedportals/portals/Portal.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/sekwah/advancedportals/PluginMessages.java b/src/com/sekwah/advancedportals/PluginMessages.java index def3a7b..780b5f7 100644 --- a/src/com/sekwah/advancedportals/PluginMessages.java +++ b/src/com/sekwah/advancedportals/PluginMessages.java @@ -13,7 +13,7 @@ public class PluginMessages { ConfigAccessor config = new ConfigAccessor(this.plugin, "config.yml"); this.useCustomPrefix = config.getConfig().getBoolean("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"); } } diff --git a/src/com/sekwah/advancedportals/portals/Portal.java b/src/com/sekwah/advancedportals/portals/Portal.java index b114f27..5bd60ce 100644 --- a/src/com/sekwah/advancedportals/portals/Portal.java +++ b/src/com/sekwah/advancedportals/portals/Portal.java @@ -382,7 +382,7 @@ public class Portal { /*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. 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); throwPlayerBack(player); return false;