Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwyrw committed Oct 24, 2020
1 parent be4ced3 commit 1fb9632
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: AntaresPrison
version: 1.3
api-version: 1.15
depend: [PlaceholderAPI, Multiverse-Core]
depend: [PlaceholderAPI]
authors: [piotrwyrw, nathen418]
load: POSTWORLD
main: org.piotrwyrw.antares.prison.AntaresPrison
Expand Down
27 changes: 14 additions & 13 deletions src/org/piotrwyrw/antares/prison/AntaresPrison.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,11 @@ private boolean checkMultiverseCore() {

@Override
public void onEnable() {
msd.toAllAdmins(MessageConstants.PLUGIN_ENABLE, true);
msd = new MessageSender();
antaresPrison = this;

System.out.println("Enabling plugin in 10 seconds ...");

new BukkitRunnable() {

@Override
public void run() {
loadPlugin();
cancel();
}
}.runTaskLater(this, 10 * 20);
}
msd.toAllAdmins(MessageConstants.PLUGIN_ENABLE, true);

public void loadPlugin() {
if (!checkPlaceholderAPI())
return;

Expand All @@ -82,6 +71,18 @@ public void loadPlugin() {
config = new Configuration("config.yml");
temporary = new Temporary();

System.out.println("Enabling plugin in 10 seconds ...");

new BukkitRunnable() {

@Override
public void run() {
loadPlugin();
}
}.runTaskLater(this, 10 * 20);
}

public void loadPlugin() {
if (!config.loadFromFile())
return;

Expand Down
18 changes: 9 additions & 9 deletions src/org/piotrwyrw/antares/prison/constants/MessageConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class MessageConstants {
public static String[] PLUGIN_SUMMARY = {
"&6 AntaresPrison",
"&7 You are Running AntaresPrison &6{VERSION}",
"&7 For help use &c/prison help"
"&7 For help use &c/prisons help"
};

private static String secretPlaceholders(String sph) {
Expand All @@ -32,14 +32,14 @@ public static void updatePluginSummary() {

public static String[] HELP = {
"&n&8o-------------------------------------------o",
"&b/prison help &8-&e Show this help page",
"&b/prison regen &8-&e Regen all mines",
"&b/prison regen <m> &8-&e Regen a particular mine",
"&b/prison balance &8-&e Your prison balance ",
"&b/prison balance <p> &8-&e Prison balance of a player",
"&b/prison minelist &8-&e List all mines",
"&b/prison reload &8-&e Reload the plugin",
"&b/prison getseller &8-&e Get a seller chest",
"&b/prisons help &8-&e Show this help page",
"&b/prisons regen &8-&e Regen all mines",
"&b/prisons regen <m> &8-&e Regen a particular mine",
"&b/prisons balance &8-&e Your prison balance ",
"&b/prisons balance <p> &8-&e Prison balance of a player",
"&b/prisons minelist &8-&e List all mines",
"&b/prisons reload &8-&e Reload the plugin",
"&b/prisons getseller &8-&e Get a seller chest",
"&n&8o-------------------------------------------o"
};

Expand Down

0 comments on commit 1fb9632

Please sign in to comment.