mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-16 15:38:14 +01:00
Remove 'ban' code.
This commit is contained in:
parent
0f4d687f65
commit
9365f6e1f1
@ -53,18 +53,6 @@ public class LibsDisguises extends JavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
// Simple codes to make sure a few certain people don't run this on their server -.-
|
||||
for (String s : new String[] { "enayet123", "shazz96", "PimpMyCreeper", "DemandedLogic", "LinearLogic", "FileDotJar",
|
||||
"ExoticGhost", "gizzy14gazza", "C43DR", "ExportB", "OverlordKiller", "Scribbles21", "Queen_Cerii" }) {
|
||||
OfflinePlayer offline = Bukkit.getOfflinePlayer(s);
|
||||
if (offline.isOp())
|
||||
return;
|
||||
}
|
||||
for (String s : new String[] { "archergames", "eye of ender", "eyeofender", "the mass" }) {
|
||||
if (Bukkit.getMotd().toLowerCase().contains(s) || Bukkit.getServerName().toLowerCase().contains(s)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
saveDefaultConfig();
|
||||
FileConfiguration config = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "config.yml"));
|
||||
boolean modified = false;
|
||||
@ -248,4 +236,4 @@ public class LibsDisguises extends JavaPlugin {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user