Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Register keep lobby loaded event

  • Loading branch information...
commit 766c3ec19305024e8e889a873db50681021d352a 1 parent c065685
@Double0negative authored
Showing with 34 additions and 33 deletions.
  1. +32 −33 pom.xml
  2. +2 −0  src/main/java/org/mcsg/survivalgames/SurvivalGames.java
View
65 pom.xml
@@ -15,11 +15,11 @@
<repository>
<id>bukkit-repo</id>
<url>http://repo.bukkit.org/content/groups/public</url>
- </repository> <!--
- <repository>
- <id>mcstats-repo</id>
- <url>http://repo.mcstats.org/content/repositories/public</url>
- </repository> -->
+ </repository> <!--
+<repository>
+<id>mcstats-repo</id>
+<url>http://repo.mcstats.org/content/repositories/public</url>
+</repository> -->
<repository>
<id>drtshock-repo</id>
<url>http://ci.drtshock.com/plugin/repository/everything</url>
@@ -30,33 +30,33 @@
</repository>
</repositories>
<build>
- <plugins> <!--
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>1.5</version>
- <configuration>
- <artifactSet>
- <includes>
- <include>org.mcstats:Metrics</include>
- </includes>
- </artifactSet>
- <relocations>
- <relocation>
- <pattern>org.mcstats</pattern>
- <shadedPattern>libilibigot.utilzbiznatch.metrics</shadedPattern>
- </relocation>
- </relocations>
- </configuration>
- <executions>
- <execution>
- <phase>package</phase>
- <goals>
- <goal>shade</goal>
- </goals>
- </execution>
- </executions>
- </plugin> -->
+ <plugins> <!--
+<plugin>
+<groupId>org.apache.maven.plugins</groupId>
+<artifactId>maven-shade-plugin</artifactId>
+<version>1.5</version>
+<configuration>
+<artifactSet>
+<includes>
+<include>org.mcstats:Metrics</include>
+</includes>
+</artifactSet>
+<relocations>
+<relocation>
+<pattern>org.mcstats</pattern>
+<shadedPattern>libilibigot.utilzbiznatch.metrics</shadedPattern>
+</relocation>
+</relocations>
+</configuration>
+<executions>
+<execution>
+<phase>package</phase>
+<goals>
+<goal>shade</goal>
+</goals>
+</execution>
+</executions>
+</plugin> -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -114,4 +114,3 @@
</dependency>
</dependencies>
</project>
-
View
2  src/main/java/org/mcsg/survivalgames/SurvivalGames.java
@@ -113,6 +113,8 @@ public void run() {
pm.registerEvents(new SpectatorEvents(), p);
pm.registerEvents(new BandageUse(), p);
pm.registerEvents(new KitEvents(), p);
+ pm.registerEvents(new KeepLobbyLoadedEvent(), p);
+
for (Player p: Bukkit.getOnlinePlayers()) {
if (GameManager.getInstance().getBlockGameId(p.getLocation()) != -1) {
Please sign in to comment.
Something went wrong with that request. Please try again.