Switch to Maven file structure

This commit is contained in:
P0nk
2021-03-30 21:07:35 +02:00
parent 4acc5675d6
commit 813643036b
817 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package net.server.task;
import net.server.PlayerStorage;
import net.server.Server;
import net.server.channel.Channel;
import server.maps.MapleMapManager;
/**
* @author Resinate
*/
public class RespawnTask implements Runnable {
@Override
public void run() {
for (Channel ch : Server.getInstance().getAllChannels()) {
PlayerStorage ps = ch.getPlayerStorage();
if (ps != null) {
if (!ps.getAllCharacters().isEmpty()) {
MapleMapManager mapManager = ch.getMapFactory();
if (mapManager != null) {
mapManager.updateMaps();
}
}
}
}
}
}