Commit Graph

29 Commits

Author SHA1 Message Date
ab3bd7c847 Updated to version 2.1.0. forge-1.16.5-2.1.0 2021-09-30 23:14:28 +01:00
b3fbf8f42b Fixed allowed keys implementation by converting the list to hold String values. 2021-09-30 23:12:12 +01:00
603cceac93 Updated implementation of Config.java. Fixed issue where server would create infinite amounts of backup files for the config file; this was caused by checking if the allowedKeys list values were of type KEYS instead of String. 2021-09-30 23:01:58 +01:00
4c95ba61da Updated the grace period messages sent to players. Added a new message to notify player when he is seen as active. Removed old console message when a player is no longer protected. 2021-09-30 22:26:14 +01:00
61deba8368 Improved allowed keybindings implementation. Fixed an exploit where if a key was bound to two different actions it could bypass the detection of it; the method now checks for the key on every possible keybinding. 2021-09-30 21:18:05 +01:00
50a4a57a63 Implemented configurable keybinding options that will allow players perform certain actions while protected without becoming active. 2021-09-30 17:47:14 +01:00
51b528a0f4 Changed jar file version from 1.17.1 to 1.16.5. oops. forge-1.16.5-2.0.0 2021-09-29 19:39:54 +01:00
8d077b17f4 Optimized imports. Fixed pattern variable that didn't want to work in OnLivingSetAttackTargetEventHandler. 2021-09-29 19:33:56 +01:00
dbd0a0b3ee Implemented config features into the ProtectedPlayer and ProtectedPlayers classes. 2021-09-29 18:51:22 +01:00
a1874eb280 Added OnLivingSetAttackTargetEventHandler event. 2021-09-29 18:49:26 +01:00
82bb547685 Updated C2SKeyPress class. 2021-09-29 18:45:10 +01:00
04f3bf7e60 Added configuration file. 2021-09-29 18:39:53 +01:00
651c76553f Removed pointless variable. 2021-09-29 18:37:45 +01:00
3c497494cd Changed version number to 2.0.0. 2021-09-29 18:35:57 +01:00
44d5b07f2c Updated forge version to 1.16.5-36.2.6. Changed version and jar file name. Fixed issue where version number didn't show up correctly in-game. 2021-09-29 18:33:59 +01:00
2ed4045bcb Removed unnecessary files. forge-1.16.5-1.0.0 2021-09-29 03:32:30 +01:00
ec7c0e439b Added other project files. 2021-09-29 03:03:45 +01:00
7d8870aca2 First commit 2021-09-26 22:50:34 +01:00
58634ef30e Fixed grace period updating when it shouldn't. Fixed singleplayer making player invulnerable. 2021-06-03 20:56:04 +01:00
47b27d67c8 Optimized imports. Changed ServerTickEventHandler to PlayerTickEventHandler and made grace periods are now updated per player. 2021-06-03 20:49:56 +01:00
26153775c3 Fixed dumb error in ProtectedPlayers.java getPlayer method. Fixed client crash when joining server and clicking/pressing keys. 2021-06-03 20:37:18 +01:00
e900082a27 Changed version from 1.0 to 1.0.0 2021-06-03 19:59:12 +01:00
b6f03dfa1b Optimized imports. 2021-06-03 19:58:46 +01:00
6c30641919 Changed grace period time from 200 to 400 (5s to 10s). Added function to ProtectedPlayers.java to remove a player from the list, updated the updateGracePeriods method. Updated C2SKeyPress.java. Made OnKeyPressEventHandler.java check for mouse clicks as well, also made sure it only fires on client-side. Added an event for when a player leaves the server to remove them from the list. 2021-06-03 19:58:21 +01:00
2688402c40 Created a network packet for when a client presses a key. (Mod is now also client sided). Renamed some event handlers. Made it so after a client presses a key their grace period starts. After the grace period ends the player is removed from the list. 2021-06-03 17:01:28 +01:00
21381e07af Added new data class for list of protected players. Created new event for entities getting damaged and made it so that protected players don't take damage. 2021-06-03 15:55:23 +01:00
9a6489bf56 Added ProtectedPlayer.java for storing data on protected players. Created an event for players joining and adding the joined player to a list of protected players. 2021-06-03 15:28:05 +01:00
9ae2e0b52d Added Registration.java 2021-06-03 14:20:50 +01:00
38c796c93c Initial commit. 2021-06-03 14:18:19 +01:00