forked from SteamWar/SteamWar
Add arena map world name identifier for TowerRun and TNTLeague
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
|
||||
package de.steamwar.tntleague
|
||||
|
||||
import de.steamwar.core.Core
|
||||
import de.steamwar.core.WorldIdentifier
|
||||
import de.steamwar.message.Message
|
||||
import de.steamwar.tntleague.command.*
|
||||
import de.steamwar.tntleague.events.GlobalListener
|
||||
@@ -43,6 +45,11 @@ class TNTLeague : JavaPlugin() {
|
||||
|
||||
logger.info("TNTLeague enabled")
|
||||
|
||||
val arenaMap = System.getProperty("arenaMap")
|
||||
if (arenaMap != null) {
|
||||
WorldIdentifier.set("fight/" + Core.getVersion() + "/" + arenaMap)
|
||||
}
|
||||
|
||||
ReadyCommand.register()
|
||||
InviteCommand.register()
|
||||
AcceptCommand.register()
|
||||
|
||||
Reference in New Issue
Block a user