Commit Graph

154 Commits

Author SHA1 Message Date
ThatCreeper
30868df243 Remove unused imports 2021-01-02 17:08:59 -06:00
ThatCreeper
30be7b5b81 Add Potion Add and Remove events 2021-01-02 16:59:17 -06:00
Matt Worzala
46ac38d5b3
Change ColoredText usages to JsonMessage 2020-12-31 13:53:21 -05:00
ThatCreeper
c3d6af3afe make removeEffect send a packet
Make Potion immutable, and use long instead of Long
2020-12-30 19:07:07 -06:00
ThatCreeper
b1cab4ee05 Make /potion use TICK_PER_SECOND 2020-12-30 18:56:56 -06:00
ThatCreeper
6a154eb15a Fix /potion demo command 2020-12-30 18:29:54 -06:00
ThatCreeper
d7883d29ff Rewrite Potions 2020-12-30 18:29:07 -06:00
ThatCreeper
50b44e46e0 Add PotionEffectManager 2020-12-30 17:12:03 -06:00
themode
6e0ad54d5e Added EntityEndCrystal 2020-12-22 05:36:15 +01:00
themode
b5feb35619 Added PlayerDeathEvent to change the death message/text 2020-12-22 05:26:37 +01:00
themode
5224eecdd1 Event unification (type-specific event, CancellableEvent is now an interface) 2020-12-16 03:21:59 +01:00
themode
1742aa6f8a Updated the custom stone block in demo 2020-12-14 05:43:10 +01:00
themode
3cfa216274 Fix intellij auto annotation 2020-12-14 01:45:46 +01:00
themode
8cddf30b9e Annotation for ChunkGenerator 2020-12-14 01:41:08 +01:00
Felix Cravic
a1ee3a28a0 TestPermissions cleanup 2020-12-11 21:50:59 +01:00
Felix Cravic
90102e1562 Permission improvement 2020-12-11 21:42:32 +01:00
Felix Cravic
76c3ea52ac Merge branch 'master' into nbt-permission 2020-12-11 21:37:00 +01:00
Felix Cravic
ac8ba3ab10 Fixed ItemDropEvent and PickupItemEvent constructor + changed PlayerInit event registration to use the global event handler 2020-12-11 04:34:08 +01:00
Felix Cravic
00c144b592 Rework of the permission API 2020-12-10 02:56:56 +01:00
Felix Cravic
654a68092a Simply MainDemo 2020-12-09 22:38:20 +01:00
Felix Cravic
f7c05a445e Remove #copy 2020-12-09 21:34:53 +01:00
Felix Cravic
40787902e3 Small demo code update 2020-12-06 20:20:05 +01:00
Eoghanmc22
338a1737c7 wait for netty to finish shutting down 2020-11-25 20:13:38 -05:00
Eoghanmc22
296d645400 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/benchmark/BenchmarkManager.java
2020-11-25 11:29:50 -05:00
Eoghanmc22
d1138f9f81 Fix race condition 2020-11-25 11:28:37 -05:00
Felix Cravic
0705ab34ed Allow custom suggestion type with ArgumentDynamicWord 2020-11-22 22:58:14 +01:00
Eoghanmc22
d056fceb8a slightly improve performance and fix memory leak 2020-11-22 12:44:08 -05:00
Eoghanmc22
1af58b1d96 fix Main 2020-11-21 17:08:56 -05:00
Eoghanmc22
04fc38a14f Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-21 14:59:17 -05:00
themode
48b637cbc8 Fixed player spawn when a respawn point is not specified 2020-11-21 20:56:32 +01:00
Eoghanmc22
f2f0625666 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/test/java/demo/PlayerInit.java
2020-11-21 13:23:16 -05:00
Eoghanmc22
926c02b7f5 Small optimizations to netty. 2020-11-21 13:09:03 -05:00
themode
234ac6daf4 Fixed build error 2020-11-21 06:43:12 +01:00
Eoghanmc22
4e11b16ee1 improve performance by 5-10% 2020-11-20 21:58:00 -05:00
Eoghanmc22
cb013f8291 player init 2020-11-20 15:19:20 -05:00
Eoghanmc22
1da7f5da78 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/test/java/demo/PlayerInit.java
2020-11-20 12:28:52 -05:00
themode
8d0a24fd55 PlayerInit packet optimization 2020-11-20 18:23:46 +01:00
Eoghanmc22
ee2e141673 implement pooled buffers 2020-11-20 12:16:45 -05:00
Eoghanmc22
9a64a0a409 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/entity/Player.java
	src/main/java/net/minestom/server/network/player/NettyPlayerConnection.java
	src/main/java/net/minestom/server/utils/PacketUtils.java
2020-11-20 08:56:58 -05:00
themode
533526d3a5 MainDemo does not require a default write and read speed 2020-11-19 08:48:33 +01:00
Eoghanmc22
f307303758 Netty improvements 2020-11-18 20:28:56 -05:00
Eoghanmc22
618fd2b536 Begin optimizing netty. 2020-11-18 13:39:06 -05:00
jglrxavpok
142b6a69a5 Post-merge fixes 2020-11-18 09:24:59 +01:00
jglrxavpok
0a4bb5ab08 Merge branch 'extensions-v2'
# Conflicts:
#	src/main/java/net/minestom/server/extensions/Extension.java
#	src/main/java/net/minestom/server/extensions/ExtensionManager.java
#	src/main/java/net/minestom/server/extras/selfmodification/MinestomRootClassLoader.java
2020-11-18 09:13:30 +01:00
themode
2405b7ae6f KB, not MB 2020-11-17 16:11:59 +01:00
themode
7ebbb8bc6c Added networking optimization code in MainDemo 2020-11-17 16:08:30 +01:00
JësFot
d738f9fddd Implement attribute instances 2020-11-17 14:59:47 +01:00
themode
392e702108 Improving chunk generation performance 2020-11-16 17:02:40 +01:00
themode
798b5d4853 Only flush during player update 2020-11-16 12:03:22 +01:00
themode
310733b747 Fixed stacking not working with NbtDataImpl 2020-11-16 07:40:45 +01:00
themode
3db53a798f Removed lombok dependency 2020-11-16 03:10:51 +01:00
themode
11f1a5380c Fix data file not being generated in TestLootTables 2020-11-16 00:46:46 +01:00
themode
beebf18af2 Fixed the chunk generator not being executed when no populator is defined 2020-11-15 10:44:11 +01:00
themode
2285c9622a If the garbage collector is happy, everyone is - TheMode 2020-11-15 08:03:33 +01:00
themode
4353e10741 Added bungee skin/uuid forwarding 2020-11-14 23:18:52 +01:00
themode
ae8a182eb8 Read player skin from velocity 2020-11-14 22:13:01 +01:00
themode
1d1e82aeb3 Prevent infinite load screen when not teleporting the player on spawning 2020-11-14 21:45:30 +01:00
themode
da94942bad Created PermissionHandler 2020-11-14 07:06:46 +01:00
themode
facc43e550 Added OptifineSupport for fast fix 2020-11-14 04:09:38 +01:00
themode
1a8baf36f6 Prevent command override using CommandManager 2020-11-14 01:39:51 +01:00
themode
2d009e19a7 Added KQueue support on OSX + netty version update 2020-11-13 08:39:05 +01:00
themode
c60f625c55 Revamp of the packet sending code, added possibility to have listeners for outgoing packets 2020-11-13 07:43:35 +01:00
themode
6e77bb8358 Improved demo commands clarity 2020-11-12 03:09:36 +01:00
themode
1d7db5e211 Added dynamic palette resizing 2020-11-11 21:35:20 +01:00
themode
babc6e35ba Fixed palette 2020-11-11 17:30:18 +01:00
themode
55cddf6b78 Added palette 2020-11-11 17:13:36 +01:00
themode
4dfe01ea2f WIP PaletteStorage (only works with Bits per entry of 15) 2020-11-11 06:06:28 +01:00
themode
6cbe656b15 Added "semi-relative" location argument support 2020-11-11 02:11:28 +01:00
themode
ad357d70fc Added ArgumentRelativeBlockPosition, ArgumentRelativeVec3 and ArgumentRelativeVec2 2020-11-10 23:16:35 +01:00
themode
bbf9f92b52 Added bungee forwarding support 2020-11-10 21:38:08 +01:00
themode
7db94f3a65 Support for velocity modern forwarding 2020-11-09 23:48:34 +01:00
themode
66fc6779b6 Dynamic arguments now also have an optional dynamic restriction 2020-11-07 03:40:37 +01:00
themode
8c8ba37947 Added auto suggestion in the reload command 2020-11-06 23:35:31 +01:00
jglrxavpok
69f424eb6a Improve load command safety 2020-11-06 16:10:44 +01:00
jglrxavpok
d83bec4732 Let users change extension jar after unload, then load it again 2020-11-06 16:03:08 +01:00
themode
f85b2c4aad Allow dynamic entity view distance change 2020-11-04 19:14:04 +01:00
themode
9781e380b9 Command syntaxes can now contain a CommandCondition 2020-11-04 04:45:46 +01:00
jglrxavpok
925f5fa614 Reloading extensions 2020-11-03 21:26:46 +01:00
themode
1c6070a1b2 Added an unknown command callback 2020-11-02 04:13:43 +01:00
themode
2e0c5a72b7 Added optional additional data in Permission#isValidFor 2020-11-02 02:53:12 +01:00
themode
0184ada9a0 Renamed #clone to #copy 2020-10-31 18:03:15 +01:00
themode
06f2ed6065 Use the Contract annotation to prevent useless NPE warnings 2020-10-26 13:57:02 +01:00
jglrxavpok
aac18a19f9 Test to avoid regression errors on '.' and '/' in NamespaceID paths 2020-10-25 11:32:15 +01:00
jglrxavpok
535e8946b6 Extensions can declare Maven dependencies which will be auto-downloaded 2020-10-24 22:57:38 +02:00
themode
b2e3d3e78d Use negative entity id for the custom breaking system 2020-10-19 11:56:26 +02:00
jglrxavpok
26ce63763a Validity checks on NamespaceIDs 2020-10-18 18:27:57 +02:00
themode
512b30e9df Added ArgumentItemStack 2020-10-16 14:31:15 +02:00
themode
fbe4126021 Added Player#chat to simulate chat message 2020-10-16 11:37:00 +02:00
themode
551bd42b48 Moved the demo server to the test directory 2020-10-11 16:02:26 +02:00
jglrxavpok
6df42b79cb Merge branch 'mixin-support' 2020-09-11 21:03:43 +02:00
Nesaak
dd66699a20 Make Data and SerializableData interfaces 2020-09-02 12:41:04 -04:00
jglrxavpok
21b48fe291 Wired Mixin phases with Minestom initialization 2020-08-25 15:44:17 +02:00
jglrxavpok
c3c2b0a34c Loading mixins from extensions 2020-08-23 23:27:53 +02:00
jglrxavpok
26b8ad125e Very basic Mixin support 2020-08-23 22:38:27 +02:00
jglrxavpok
223af361d8 Code modifiers and test extension 2020-08-21 01:32:59 +02:00
jglrxavpok
d2df5fdc60 Serialization methods 2020-08-10 21:42:54 +02:00
jglrxavpok
1772b94114 Start of Permission API 2020-07-31 22:31:58 +02:00
Articdive
cca65f8d42
Update dependncies and JUnit 2020-07-13 19:34:32 +02:00
jglrxavpok
e2a01c1a16 Back to 1.15.2 to prepare for merge 2020-06-29 21:19:59 +02:00
jglrxavpok
290d922e3a Replacing old Block enum with autogenerated Block enum 2020-06-23 18:35:23 +02:00