Commit Graph

541 Commits

Author SHA1 Message Date
27b1f0641e Adds some block location tests 2021-10-18 14:57:12 +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
f96e8ed2da Adds a method for checking if a player can afford a given fee 2021-10-18 03:36:56 +02:00
d9ae5456cc Improves permission checking for vehicles with multiple passengers
Changes some log messages into debug messages
Makes sure that all player passengers of a vehicle have their permissions verified and fee paid. This ensures passengers won't get a free ride, or be allowed to access restricted areas by playing stowaway.
2021-10-18 03:35:59 +02:00
fabe0dda80 Fixes inconsistencies in coloring of the portal name when drawing signs. The - is now white. 2021-10-17 22:47:27 +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
e2c91c1feb Changes EconomyHandler method names to be more consistent 2021-10-15 19:25:31 +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
382156a719 Adds missing information about gate economy config values 2021-10-15 18:52:02 +02:00
44325eeb6a Improves and fixes comments for listeners
Removes the enableBungee check in the BungeeCordListener as it should only be listening if the option is enabled anyway
Improves the checking for players teleporting from the end
2021-10-13 16:46:30 +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
0ab6cb52c0 Makes some small comment adjustments 2021-10-13 14:08:38 +02:00
f16a7089f4 Updates the comments for BlockLocation 2021-10-13 13:35:56 +02:00
4bdc5b6bd9 Populates default gates after migrating config to update default gates for old installations 2021-10-12 20:41:45 +02:00
5b6e3f81a6 Updates readme to mark end portals as functional 2021-10-12 04:18:58 +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
e14007380f Adds proper checking and odd case catching before teleporting players through artificial end portals
Adds a proper permission check to make sure players are allowed to teleport through the artificial portal
Adds a teleportation back to the entrance as the teleportation event cannot be properly cancelled
Adds a proper class for storing info about the teleportation
2021-10-12 02:47:09 +02:00
53cd55938b Fixes teleportation of players using end portals to and from the end 2021-10-12 01:11:52 +02:00
51afa1527f Updates the API version used as 1.16 is no longer the target version 2021-10-11 20:16:36 +02:00
72c1b5a239 Updates About information 2021-10-11 20:13:50 +02:00
b0c350a140 Updates README to reflect vehicle teleportation capabilities 2021-10-11 01:35:12 +02:00
06757ef9ee Removes debug output for chunk unloading 2021-10-11 01:20:50 +02:00
9efc960696 Makes sure to check entrance blocks when, and only when, protectEntrance is enabled 2021-10-11 00:11:04 +02:00
1bf9914c39 Generifies another vehicle check 2021-10-11 00:03:49 +02:00
05123d54bd Generifies the check for non-living vehicles just in case 2021-10-10 23:38:20 +02:00
2e4d545955 Changes the vehicle check to prevent players in boats from leaving their boat to teleport 2021-10-10 23:17:29 +02:00
f8fae1fbf1 Makes sure to ignore mounted players if handleVehicles is disabled 2021-10-10 23:11:52 +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
69a62c921c Fixes the color inconsistency for the portal selection "arrows" for gates with colored names 2021-10-10 17:21:19 +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
3a8943baef Configures the maven-compiler-plugin to also compile the source code as Java 16 2021-10-09 23:38:55 +02:00
be8de83bcc Forces a teleported horse to become tamed 2021-10-09 18:48:59 +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
336c3c4bfb Updates information about plugin settings 2021-10-09 03:02:00 +02:00
2fec641d9d Fixes typos 2021-10-08 23:23:06 +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
a68dc4b464 Updates the README with new info and fixes a ton of gramatical errors 2021-10-08 18:21:30 +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