2541391d3e
Moves all config related code from Stargate to StargateConfig
2021-10-23 18:34:31 +02:00
deba2e5c2c
Makes the stargate logger private
2021-10-23 14:25:46 +02:00
7cc8685e26
Moves all methods for sending messages to players to the MessageSender class
2021-10-23 14:10:33 +02:00
2196d5b99e
Moves some config values from StarGate and into the StarGateConfig class
...
Renames EconomyHandler to EconomyConfig and puts it in the new config package
Moves the LanguageLoader to the config package
Fixes the explanation of chargeFreeDestination in the README
2021-10-23 03:56:59 +02:00
9a0f16e558
Moves the portal owner name and owner UUID to the PortalOwner class which makes the TwoTuple unnecessary
2021-10-22 19:51:46 +02:00
485ca284b0
Extracts portal saving and loading to the PortalFileHelper class
2021-10-22 16:18:35 +02:00
4e09b44c7c
Extracts portal registration and all portal lookup to the PortalRegistry class
2021-10-21 23:59:16 +02:00
593d528bcd
Extracts the portal creation and validation part of the PortalHandler into the PortalCreator
2021-10-21 20:15:29 +02:00
cb2f7443f5
Improves comments for PortalOptions
2021-10-21 16:39:35 +02:00
8eff9ae5e6
Fixes comments for the PortalOpener class
2021-10-21 00:27:42 +02:00
4b42d4914a
Renames openTime to activatedTime, though it's kind of used for both opening and activation
2021-10-20 20:57:00 +02:00
2650e31d97
Fixes comments for the portal activator
2021-10-20 20:55:51 +02:00
d2e8c81a5a
Splits the portal class into Portal, PortalActivator, PortalOpener and PortalStructure
...
PortalStructure now contains information about the gate's physical structure, such as the location of border blocks, the location of entrances, the gate type and the button location.
PortalActivator is responsible for activating/de-activating portals, destination toggling and getting information about available destinations.
PortalOpener is responsible for opening/closing a portal. It's also the place to go for checking if the portal is open for a given player.
Comments of the Portal class have been improved, but the comments of the three new classes need fixing.
2021-10-20 16:09:35 +02:00
635d08b1b3
Makes the SignHelper helper class into the proper PortalSignDrawer which each Portal now has one instance of
2021-10-20 01:33:36 +02:00
1d4b988ca4
Moves the rest of the sign drawing code from Portal to SignHelper
2021-10-18 19:12:30 +02:00
82ed28bba0
Removes the DirectionHelper's getBlockAt method as it only increased complexity
2021-10-18 18:52:24 +02:00
0506cf1b61
Splits the PortalTeleporter into a PlayerTeleporter and a VehicleTeleporter for better structuring
...
Moves player-related teleportation code to PlayerTeleporter, moves vehicle-related teleportation code to VehicleTeleporter and makes them both extend the Teleporter which now contains all common teleportation code.
2021-10-18 18:38:36 +02:00
f4ec5e05d6
Improves sign drawing during portal loading
...
Adds "Invalid gate" to the last line of portals with an invalid or unloaded gate type
Re-draws all portals' signs on load in case some invalid portals becomes valid. This also updates any formatting
2021-10-18 18:34:35 +02:00
ac045fa7db
Fixes a severe bug caused by trying to simplify GateLayout's saveLayout method
2021-10-18 04:00:18 +02:00
982d8abf65
Extracts teleportation code into the PortalTeleporter class to improve readability
2021-10-18 03:41:16 +02:00
3de785d5ab
Improves and fixes comments for the gate layout class
2021-10-16 16:44:11 +02:00
59069d1423
Improves comments in the GateHandler class and extracts some code into GateReader
...
Moves code for reading .gate files into the GateReader helper class
Improves all comments in GateHandler where possible
Adds more helper comments
2021-10-15 22:16:02 +02:00
5299efaa86
Renames types to characterMaterialMap inside the GateHandler class
2021-10-15 19:46:25 +02:00
d45af537cd
Removes the unused getCorners method
2021-10-15 19:24:15 +02:00
6e658003e0
Improves Gate comments where possible
...
Renames types to characterMaterialMap
Simplifies writeConfig to a single method
2021-10-15 19:23:17 +02:00
bf7a10636e
Improves comments for Stargate events, and adds a new event for teleporting entities
...
Adds information about what events can be used for
Tries to clarify event comments where possible
Renames The StargatePortalEvent to StargatePlayerPortalEvent
Adds StargateEntityPortalEvent
Makes the StargateEntityPortalEvent trigger whenever a vehicle is teleported
Removes the unused event name for all events
2021-10-13 15:45:15 +02:00
4bdc5b6bd9
Populates default gates after migrating config to update default gates for old installations
2021-10-12 20:41:45 +02:00
0709c18e30
Adjusts height to get above slabs to an entire block as empty minecarts clipped through single slab layers
2021-10-12 03:48:13 +02:00
53cd55938b
Fixes teleportation of players using end portals to and from the end
2021-10-12 01:11:52 +02:00
06757ef9ee
Removes debug output for chunk unloading
2021-10-11 01:20:50 +02:00
05123d54bd
Generifies the check for non-living vehicles just in case
2021-10-10 23:38:20 +02:00
964eb0f898
Adds a new The End- inspired gate for more default diversity
2021-10-10 23:03:39 +02:00
38ea543b80
Improves chunk unloading
...
Adds all chunk unloading to a queue
Adds a thread which unloads chunks
Updates chunk unload requests such that a chunk won't be unloaded twice,
and an old unloading request cannot unload a chunk too soon
2021-10-10 22:33:30 +02:00
b847002617
Adds some small changes which seem to completely fix all horse teleportation bugs. Fixes #1
2021-10-10 17:15:00 +02:00
6ad7fa4cb9
Removes the IllegalStateException Removing entity while ticking! TODO as it seems to have been fixed by preventing portal creation
2021-10-10 16:14:51 +02:00
2abe10bcde
Improves the way chunks are loaded, and decreases the wait time before players are put into minecarts
2021-10-10 15:10:36 +02:00
7a9dbb8046
Implements some Java 14 code migrations
2021-10-09 23:41:19 +02:00
ba3304a716
Fixes a minecart rotation bug caused by changing the rotation of the deleted vehicle instead of the new one
2021-10-09 17:03:19 +02:00
051a6b8f98
Removes the temporary ignoreEntrances option and replaces it with proper snowman blocking. Fixes #3
...
Allows new gates to contain water as underwater gates are a thing now
Adds a check to prevent snowmen from placing snow inside a portal's entrance
Removes the ignoreEntrances option everywhere
2021-10-09 15:09:14 +02:00
f87ffc906c
Minor comment and formatting cleanup
2021-10-09 03:57:24 +02:00
0c29788a31
Fixes the behavior of backwards portals
...
Fixes a bug where backwards portals only rotated the player
Fixes the rotation being wrong when teleporting from a backwards portal
2021-10-08 18:59:14 +02:00
fff4d8d78b
Gets rid of the rest of the modX and modY usages, and removes some unused code
2021-10-08 18:23:42 +02:00
6d5c4802bc
Creates some new methods to get a location from a relative location which I can actually understand
2021-10-08 15:28:12 +02:00
e7fc1daafe
Moves functionality to the PortalOptions and PortalLocation classes
2021-10-08 01:26:12 +02:00
60c543e52a
Adds a new class for keeping track of portal options
2021-10-08 01:25:25 +02:00
76b2aab057
Tries to improve readability of the portal creation code
2021-10-06 19:46:34 +02:00
201f7eaf15
Adds a class for storing a portal's location data
2021-10-06 19:45:49 +02:00
d86aae87f3
Extracts portal creation validation into its own method
2021-09-25 13:52:00 +02:00
e4f71f1b71
Extracts some portal creation code into separate methods
2021-09-25 13:22:50 +02:00
7dcf050d96
Removes a function for checking if a control block is powered as it's never used
2021-09-25 12:46:59 +02:00