diff --git a/README.md b/README.md index f11df07..39eb82d 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,14 @@ An unofficial server for semi-famous game Rolypolyland (Shararam). Remake by alterwain. Original by cl0zzzy (also me, but in 2018). ## Caution -> Anything you will do with this software is completely your responsibility. We **do not** provide any technical support nor we don't responsible for consequences you will face due to hosting of this server (Malfunction of your computer, lawsuit, data corruption). +> Anything you will do with this software is completely your responsibility. We **do not** provide any technical support, nor we don't responsible for consequences you will face due to hosting of this server (Malfunction of your computer, lawsuit, data corruption). > > > To avoid nasty aftermath, consider sharing access to instance of this server only to people you trust. > > **We also don't have any paid services.** > -> We only distribute software on [Github](https://github.com/) and [Gitea](https://gitea.awain.net/alterwain/WhimsyWorld). +> We only distribute software on [GitHub](https://github.com/) and [Gitea](https://gitea.awain.net/alterwain/WhimsyWorld). > > If you would like to have a little chat with me, here's my IRC server (TOR): diff --git a/src/main/java/com/alterdekim/game/component/GameServer.java b/src/main/java/com/alterdekim/game/component/GameServer.java index 6664a6a..ed2856c 100644 --- a/src/main/java/com/alterdekim/game/component/GameServer.java +++ b/src/main/java/com/alterdekim/game/component/GameServer.java @@ -34,7 +34,7 @@ public class GameServer { @Autowired private LocationService locationService; - private Map players; + private final Map players; public GameServer() { this.players = new HashMap<>(); diff --git a/src/main/java/com/alterdekim/game/component/rtmp/ConnectedProcessor.java b/src/main/java/com/alterdekim/game/component/rtmp/ConnectedProcessor.java index 1a4ea23..5aad760 100644 --- a/src/main/java/com/alterdekim/game/component/rtmp/ConnectedProcessor.java +++ b/src/main/java/com/alterdekim/game/component/rtmp/ConnectedProcessor.java @@ -24,11 +24,11 @@ public class ConnectedProcessor extends ConnectionProcessor { private final Long startTimestamp; private ConnectedState state; - private List message; + private final List message; private Integer expectedMessageLength; private Integer lastStreamId; private byte[] previousHeader; - private GameServer gameServer; + private final GameServer gameServer; private Long playerId; public ConnectedProcessor(InputStream inputStream, OutputStream outputStream, Socket sock, GameServer gameServer) { diff --git a/src/main/java/com/alterdekim/game/message/SerializerUtils.java b/src/main/java/com/alterdekim/game/message/SerializerUtils.java index 52800f3..4c0121d 100644 --- a/src/main/java/com/alterdekim/game/message/SerializerUtils.java +++ b/src/main/java/com/alterdekim/game/message/SerializerUtils.java @@ -32,7 +32,7 @@ public class SerializerUtils { } public static List getPrivateFields(Class theClass) { - List privateFields = new ArrayList(); + List privateFields = new ArrayList<>(); Field[] fields = theClass.getDeclaredFields(); for(Field field : fields){ if(Modifier.isPrivate(field.getModifiers())) { diff --git a/src/main/resources/templates/main.html b/src/main/resources/templates/main.html index de13ea0..644e249 100644 --- a/src/main/resources/templates/main.html +++ b/src/main/resources/templates/main.html @@ -5,19 +5,24 @@ +
- +