mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-03-01 02:31:05 +01:00
removed debugging messages for systems not being used to prevent
spamminess
This commit is contained in:
parent
f6d3770e5f
commit
e4675154d7
@ -87,8 +87,6 @@ public class Vault extends JavaPlugin {
|
||||
Chat eChat = new Chat_PermissionsEx(this);
|
||||
getServer().getServicesManager().register(Chat.class, eChat, this, ServicePriority.Highest);
|
||||
log.info(String.format("[%s][Chat] PermissionsEx found: %s", getDescription().getName(), eChat.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Chat] PermissionsEx not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
//Try loading mChat
|
||||
@ -96,8 +94,6 @@ public class Vault extends JavaPlugin {
|
||||
Chat mChat = new Chat_mChat(this);
|
||||
getServer().getServicesManager().register(Chat.class, mChat, this, ServicePriority.Highest);
|
||||
log.info(String.format("[%s][Chat] mChat found: %s", getDescription().getName(), mChat.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Chat] mChat not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
//try loading bPermissions
|
||||
@ -105,8 +101,6 @@ public class Vault extends JavaPlugin {
|
||||
Chat bPerms = new Chat_bPermissions(this);
|
||||
getServer().getServicesManager().register(Chat.class, bPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Chat] bPermissions found: %s", getDescription().getName(), bPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Chat] bPermissions not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load GroupManager
|
||||
@ -114,8 +108,6 @@ public class Vault extends JavaPlugin {
|
||||
Chat gPerms = new Chat_GroupManager(this);
|
||||
getServer().getServicesManager().register(Chat.class, gPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Chat] GroupManager found: %s", getDescription().getName(), gPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Chat] GroupManager not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load Permissions 3 (Yeti)
|
||||
@ -123,8 +115,6 @@ public class Vault extends JavaPlugin {
|
||||
Chat nPerms = new Chat_Permissions3(this);
|
||||
getServer().getServicesManager().register(Chat.class, nPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Chat] Permissions 3 (Yeti) found: %s", getDescription().getName(), nPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Chat] Permissions 3 (Yeti) not found.", getDescription().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
@ -137,8 +127,6 @@ public class Vault extends JavaPlugin {
|
||||
Economy econ = new Economy_MultiCurrency(this);
|
||||
getServer().getServicesManager().register(Economy.class, econ, this, ServicePriority.Normal);
|
||||
log.info(String.format("[%s][Economy] MultiCurrency found: %s", getDescription().getName(), econ.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] MultiCurrency not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load 3co
|
||||
@ -146,8 +134,6 @@ public class Vault extends JavaPlugin {
|
||||
Economy econ = new Economy_3co(this);
|
||||
getServer().getServicesManager().register(Economy.class, econ, this, ServicePriority.Normal);
|
||||
log.info(String.format("[%s][Economy] 3co found: %s", getDescription().getName(), econ.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] 3co not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load BOSEconomy
|
||||
@ -155,24 +141,20 @@ public class Vault extends JavaPlugin {
|
||||
Economy bose6 = new Economy_BOSE6(this);
|
||||
getServer().getServicesManager().register(Economy.class, bose6, this, ServicePriority.Normal);
|
||||
log.info(String.format("[%s][Economy] BOSEconomy6 found: %s", getDescription().getName(), bose6.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] BOSEconomy6 not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load BOSEconomy
|
||||
if (packageExists(new String[] { "cosine.boseconomy.BOSEconomy", "cosine.boseconomy.CommandHandler" })) {
|
||||
Economy bose7 = new Economy_BOSE7(this);
|
||||
getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, bose7, this, ServicePriority.Normal);
|
||||
log.info(String.format("[%s][Economy] BOSEconomy7 found: %s", getDescription().getName(), bose7.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] BOSEconomy7 not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load Essentials Economy
|
||||
if (packageExists(new String[] { "com.earth2me.essentials.api.Economy", "com.earth2me.essentials.api.NoLoanPermittedException", "com.earth2me.essentials.api.UserDoesNotExistException" })) {
|
||||
Economy essentials = new Economy_Essentials(this);
|
||||
getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, essentials, this, ServicePriority.Low);
|
||||
log.info(String.format("[%s][Economy] Essentials Economy found: %s", getDescription().getName(), essentials.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] Essentials Economy not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load iConomy 4
|
||||
@ -180,8 +162,6 @@ public class Vault extends JavaPlugin {
|
||||
Economy icon4 = new Economy_iConomy4(this);
|
||||
getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, icon4, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Economy] iConomy 4 found: ", getDescription().getName(), icon4.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] iConomy 4 not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load iConomy 5
|
||||
@ -189,8 +169,6 @@ public class Vault extends JavaPlugin {
|
||||
Economy icon5 = new Economy_iConomy5(this);
|
||||
getServer().getServicesManager().register(net.milkbowl.vault.economy.Economy.class, icon5, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Economy] iConomy 5 found: %s", getDescription().getName(), icon5.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] iConomy 5 not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load iConomy 6
|
||||
@ -198,8 +176,6 @@ public class Vault extends JavaPlugin {
|
||||
Economy icon6 = new Economy_iConomy6(this);
|
||||
getServer().getServicesManager().register(Economy.class, icon6, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Economy] iConomy 6 found: %s", getDescription().getName(), icon6.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Economy] iConomy 6 not found.", getDescription().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
@ -212,8 +188,6 @@ public class Vault extends JavaPlugin {
|
||||
Permission ePerms = new Permission_PermissionsEx(this);
|
||||
getServer().getServicesManager().register(Permission.class, ePerms, this, ServicePriority.Highest);
|
||||
log.info(String.format("[%s][Permission] PermissionsEx found: %s", getDescription().getName(), ePerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Permission] PermissionsEx not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
//Try loading PermissionsBukkit
|
||||
@ -221,32 +195,26 @@ public class Vault extends JavaPlugin {
|
||||
Permission pPerms = new Permission_PermissionsBukkit(this);
|
||||
getServer().getServicesManager().register(Permission.class, pPerms, this, ServicePriority.Highest);
|
||||
log.info(String.format("[%s][Permission] PermissionsBukkit found: %s", getDescription().getName(), pPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Permission] PermissionsBukkit not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
//Try to load bPermissions
|
||||
if (packageExists(new String[] {"de.bananaco.permissions.worlds.WorldPermissionsManager"} )) {
|
||||
Permission bPerms = new Permission_bPermissions(this);
|
||||
getServer().getServicesManager().register(Permission.class, bPerms, this, ServicePriority.Highest);
|
||||
log.info(String.format("[%s][Permission] bPermissions found: %s", getDescription().getName(), bPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Permission] bPermissions not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load GroupManager
|
||||
if (packageExists(new String[] { "org.anjocaido.groupmanager.GroupManager" })) {
|
||||
Permission gPerms = new Permission_GroupManager(this);
|
||||
getServer().getServicesManager().register(Permission.class, gPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Permission] GroupManager found: %s", getDescription().getName(), gPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Permission] GroupManager not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
// Try to load Permissions 3 (Yeti)
|
||||
if (packageExists(new String[] { "com.nijiko.permissions.ModularControl" })) {
|
||||
Permission nPerms = new Permission_Permissions3(this);
|
||||
getServer().getServicesManager().register(Permission.class, nPerms, this, ServicePriority.High);
|
||||
log.info(String.format("[%s][Permission] Permissions 3 (Yeti) found: %s", getDescription().getName(), nPerms.isEnabled() ? "Loaded" : "Waiting"));
|
||||
} else {
|
||||
log.info(String.format("[%s][Permission] Permissions 3 (Yeti) not found.", getDescription().getName()));
|
||||
}
|
||||
|
||||
Permission perms = new Permission_SuperPerms(this);
|
||||
|
Loading…
Reference in New Issue
Block a user