Allow customization of Owners. Appends to #178 and commit 67c86aea

This commit is contained in:
unknown 2014-05-19 14:21:37 +02:00
parent 00ac914066
commit eddbcf515c
4 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Fri May 16 15:39:23 CEST 2014
build.number=857
#Mon May 19 14:15:10 CEST 2014
build.number=858

View File

@ -15,6 +15,10 @@ server:
# Every word in the MOTD will be a different color unless prefixed by a color code
colorful_motd: true
# All players who show up as owner
owners:
- markbyron
# URL players should appeal for bans at
ban_url: http://totalfreedom.boards.net/

View File

@ -28,6 +28,7 @@ public enum TFM_ConfigEntry
SERVER_NAME(String.class, "server.name"),
SERVER_ADDRESS(String.class, "server.address"),
SERVER_MOTD(String.class, "server.motd"),
SERVER_OWNERS(List.class, "server.owners"),
SERVER_BAN_URL(String.class, "server.ban_url"),
SERVER_PERMBAN_URL(String.class, "server.permban_url"),
//

View File

@ -1,5 +1,6 @@
package me.StevenLawson.TotalFreedomMod;
import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry;
import static me.StevenLawson.TotalFreedomMod.TFM_Util.DEVELOPERS;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
@ -76,7 +77,7 @@ public enum TFM_PlayerRank
if (entry != null && entry.isActivated())
{
if (sender.getName().equals("markbyron"))
if (TFM_ConfigEntry.SERVER_OWNERS.getList().contains(sender.getName()))
{
return OWNER;
}