mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-12 12:16:52 +01:00
fix duplicate [Vault] in messages
This commit is contained in:
parent
484bb026cc
commit
111cea97a7
@ -201,7 +201,7 @@ public class Vault extends JavaPlugin {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// ignore exception
|
// ignore exception
|
||||||
}
|
}
|
||||||
log.info(String.format("[%s] Enabled Version %s", getDescription().getName(), getDescription().getVersion()));
|
log.info(String.format("Enabled Version %s", getDescription().getVersion()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -404,10 +404,10 @@ public class Vault extends JavaPlugin {
|
|||||||
if (packagesExists(packages)) {
|
if (packagesExists(packages)) {
|
||||||
Chat chat = hookClass.getConstructor(Plugin.class, Permission.class).newInstance(this, perms);
|
Chat chat = hookClass.getConstructor(Plugin.class, Permission.class).newInstance(this, perms);
|
||||||
sm.register(Chat.class, chat, this, priority);
|
sm.register(Chat.class, chat, this, priority);
|
||||||
log.info(String.format("[%s][Chat] %s found: %s", getDescription().getName(), name, chat.isEnabled() ? "Loaded" : "Waiting"));
|
log.info(String.format("[Chat] %s found: %s", name, chat.isEnabled() ? "Loaded" : "Waiting"));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.severe(String.format("[%s][Chat] There was an error hooking %s - check to make sure you're using a compatible version!", getDescription().getName(), name));
|
log.severe(String.format("[Chat] There was an error hooking %s - check to make sure you're using a compatible version!", name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -416,10 +416,10 @@ public class Vault extends JavaPlugin {
|
|||||||
if (packagesExists(packages)) {
|
if (packagesExists(packages)) {
|
||||||
Economy econ = hookClass.getConstructor(Plugin.class).newInstance(this);
|
Economy econ = hookClass.getConstructor(Plugin.class).newInstance(this);
|
||||||
sm.register(Economy.class, econ, this, priority);
|
sm.register(Economy.class, econ, this, priority);
|
||||||
log.info(String.format("[%s][Economy] %s found: %s", getDescription().getName(), name, econ.isEnabled() ? "Loaded" : "Waiting"));
|
log.info(String.format("[Economy] %s found: %s", name, econ.isEnabled() ? "Loaded" : "Waiting"));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.severe(String.format("[%s][Economy] There was an error hooking %s - check to make sure you're using a compatible version!", getDescription().getName(), name));
|
log.severe(String.format("[Economy] There was an error hooking %s - check to make sure you're using a compatible version!", name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -428,10 +428,10 @@ public class Vault extends JavaPlugin {
|
|||||||
if (packagesExists(packages)) {
|
if (packagesExists(packages)) {
|
||||||
Permission perms = hookClass.getConstructor(Plugin.class).newInstance(this);
|
Permission perms = hookClass.getConstructor(Plugin.class).newInstance(this);
|
||||||
sm.register(Permission.class, perms, this, priority);
|
sm.register(Permission.class, perms, this, priority);
|
||||||
log.info(String.format("[%s][Permission] %s found: %s", getDescription().getName(), name, perms.isEnabled() ? "Loaded" : "Waiting"));
|
log.info(String.format("[Permission] %s found: %s", name, perms.isEnabled() ? "Loaded" : "Waiting"));
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.severe(String.format("[%s][Permission] There was an error hooking %s - check to make sure you're using a compatible version!", getDescription().getName(), name));
|
log.severe(String.format("[Permission] There was an error hooking %s - check to make sure you're using a compatible version!", name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user