Kick All Players on Player leave

This commit is contained in:
brausjonas
2023-01-28 11:54:18 +01:00
parent eb56ec7a4e
commit e4aa7f112a
8 changed files with 42 additions and 19 deletions
+1
View File
@@ -15,6 +15,7 @@ public class Server
public void deleteRoom(String code)
{
rooms.get(code).closeRoom();
rooms.remove(code);
System.out.println("Room " + code + " successfully deleted");
}