File tree 2 files changed +6
-5
lines changed
src/main/java/com/github/cc007/headsweeper 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
<modelVersion >4.0.0</modelVersion >
4
4
<groupId >com.github.cc007</groupId >
5
5
<artifactId >HeadSweeper</artifactId >
6
- <version >1.7.1 </version >
6
+ <version >1.7.2 </version >
7
7
<packaging >jar</packaging >
8
8
<properties >
9
9
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
Original file line number Diff line number Diff line change 44
44
import java .util .logging .Level ;
45
45
import net .milkbowl .vault .permission .Permission ;
46
46
import org .bstats .bukkit .Metrics ;
47
+ import org .bukkit .Bukkit ;
47
48
import org .bukkit .ChatColor ;
48
49
import org .bukkit .event .player .PlayerInteractEvent ;
49
50
import org .bukkit .plugin .Plugin ;
@@ -84,10 +85,7 @@ public void onEnable() {
84
85
getLogger ().log (Level .INFO , "Initializing minesweeper heads..." );
85
86
initHeads ();
86
87
getLogger ().log (Level .INFO , "Sweeperheads initialized" );
87
-
88
- /* setup controller */
89
- loadGames (); // has logs, doesn't need extra
90
-
88
+
91
89
/* setup the listener */
92
90
clickListener = new HeadSweeperClickListener (this );
93
91
@@ -99,6 +97,9 @@ public void onEnable() {
99
97
100
98
/* Register commands */
101
99
getCommand ("headsweeper" ).setExecutor (new HeadSweeperCommand (this ));
100
+
101
+ /* setup controller */
102
+ Bukkit .getScheduler ().runTaskLater (this , this ::loadGames , 10 );
102
103
103
104
}
104
105
You can’t perform that action at this time.
0 commit comments