+ Added message when ProtocolLib is not installed.

This commit is contained in:
Steffion 2013-08-25 18:19:29 +02:00
parent 41647ebc6f
commit 7360d17c9e
2 changed files with 7 additions and 0 deletions

View File

@ -94,6 +94,11 @@ public class BlockHunt extends JavaPlugin implements Listener {
true); true);
} }
if (!getServer().getPluginManager().isPluginEnabled("ProtocolLib")) {
MessageM.broadcastFMessage(ConfigC.error_protocolLibNotInstalled,
true);
}
W.dcAPI = DisguiseCraft.getAPI(); W.dcAPI = DisguiseCraft.getAPI();
try { try {

View File

@ -126,6 +126,8 @@ public enum ConfigC {
W.messages), W.messages),
error_disguiseCraftNotInstalled ("%EThe plugin '%ADisguiseCraft%E' is required to run this plugin! Intall it or it won't work!", error_disguiseCraftNotInstalled ("%EThe plugin '%ADisguiseCraft%E' is required to run this plugin! Intall it or it won't work!",
W.messages), W.messages),
error_protocolLibNotInstalled ("%EThe plugin '%AProtocolLib%E' is required to run this plugin! Intall it or it won't work!",
W.messages),
error_noArena ("%ENo arena found with the name '%A%name%%E'.", W.messages), error_noArena ("%ENo arena found with the name '%A%name%%E'.", W.messages),
error_onlyIngame ("%EThis is an only in-game command!", W.messages), error_onlyIngame ("%EThis is an only in-game command!", W.messages),
error_joinAlreadyJoined ("%EYou've already joined an arena!", W.messages), error_joinAlreadyJoined ("%EYou've already joined an arena!", W.messages),