Commit Graph

242 Commits

Author SHA1 Message Date
Josh Roy
6816eb4e18
Use component logger on Paper for console colors (#4941)
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
2022-06-27 14:54:10 -04:00
Tristan Hermanns
9c5536b2e6
Fix minecraft namespace not working in give command (#4960) 2022-06-25 17:40:43 -04:00
Josh Roy
ff80338350
Log filenames during configuration serialization errors (#4959) 2022-06-21 22:01:25 +00:00
Josh Roy
8d856dd6db
Fix paths and farmland not being solid (#4915)
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
2022-06-18 19:31:54 +00:00
Josh Roy
96c6c951e8
Don't teleport to a safe location for AFK freeze when flying (#4944)
Fixes #4902.
2022-06-15 15:43:57 +00:00
Josh Roy
9147d1036d
Fix ANSI color codes not getting stripped on Paper (#4942)
Paper uses 0x7f as an intermediate character between adventure and its ANSI pattern converter, we need to strip this.
2022-06-15 16:31:42 +01:00
MD
a7f602e2ad Remove commons-lang3 dependency
`commons-lang3` is scheduled for removal by Spigot.

This commit reimplements the methods we use from StringUtils in StringUtil, and replaces NumberUtils.isDigits(String) with NumberUtil.isLong(String).
2022-06-15 16:18:35 +01:00
MD
2d5794f68d Add mangrove signs to MaterialUtil 2022-06-15 16:18:35 +01:00
Josh Roy
18f9af898e Add 1.19 mobs/data 2022-06-15 16:18:35 +01:00
Josh Roy
b916488de2 Bump VersionUtil and Spigot 2022-06-15 16:18:35 +01:00
Josh Roy
3af931740b
Don't progress playtime for vanished users (#4918) 2022-06-04 01:43:12 +00:00
pop4959
ea5cdc097d
Fix erroneous TeleportWarmupEvent event call (#4913) 2022-05-22 17:20:39 -04:00
Deltric
d891268143
Fix /nick off breaking with changecolor permissions (#4876) 2022-03-31 19:57:36 -04:00
lucko
4bd1b3c09f
Reduce user lookups for LuckPerms contexts (#4869) 2022-03-27 09:07:36 -04:00
MD
c4f10d9c1d
Fix double charge for /tpa when target has /tpauto on (#4862)
If a player uses `/tpa` to request a teleport to someone with `/tpauto` enabled, `/tpa` manually creates a charge for the teleportation.  
This PR changes the subsequent code to throw a `NoChargeException` instead of returning, meaning only the `AsyncTeleport` charge is applied, not the standard command one.

Fixes #4854.
2022-03-20 11:19:20 +00:00
MD
695546420f
Run update check using Bukkit scheduler (#4839)
Fixes #4825.
2022-03-12 12:02:20 +00:00
Josh Roy
997fb1800e
Fix preemptive setting of owner metadata on to trade signs (#4835)
Fixes #4836.
2022-03-08 15:08:34 +00:00
MD
c5253bc5e2
Update to Minecraft 1.18.2 (#4821)
This PR updates the build setup to Gradle 7.4 and updates EssentialsX to Minecraft 1.18.2.
2022-02-28 20:51:26 +00:00
MD
c3b994808f
Use GitHub proxy fallback for update checker (#4818) 2022-02-26 17:09:54 -05:00
Josh Roy
88c8ccd29b Add config for default shout state and for persisting shout state 2022-02-13 22:44:37 -05:00
Josh Roy
94edbcfeb1 Add chat question config option 2022-02-13 22:44:37 -05:00
Josh Roy
d5822e9a41
Add config for max /tree and /bigtree range (#4728)
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
2022-02-13 16:46:18 -05:00
Josh Roy
debf09437e
Add UUID support to trade and protection signs (#4713) 2022-02-13 15:54:19 -05:00
Josh Roy
a9e5f079a9
Fix trade sign length validation issues (#4748) 2022-02-13 15:50:43 -05:00
Josh Roy
f00c2dcf92
Fix keepinv policies ignoring offhand (#4725) 2022-02-13 20:37:25 +00:00
Josh Roy
63cbf7e2da
Prevent legacy material support from being initiated (#4697) 2022-02-13 15:33:51 -05:00
Josh Roy
19837f9309
Add some more dump files (#4785)
Adds worth, tpr, and spawns configs.

See also https://github.com/EssentialsX/Website/pull/68
2022-02-08 09:26:05 +00:00
Josh Roy
4b8b770c30
Allow /nick without change-displayname (#4758)
Closes #4709.
2022-02-06 18:23:17 +00:00
Josh Roy
ddc258ed11
Fix teleport request queue being reversed order (#4755)
Fix #4753
2022-02-06 18:18:40 +00:00
Josh Roy
d23796dade
Support doubles in /tppos (#4729)
Closes #1785
2022-02-06 18:01:51 +00:00
sxphirus
5c46bea2ca
Add translation key for /near entries (#4740) 2022-01-20 10:05:31 -05:00
Josh Roy
bb88a6a749
Fix rate limit exception in update checker (#4731) 2022-01-02 17:24:32 +00:00
Pierre Dedrie
739600eb05
Fix safelogin for 1.18 and above by using worldProvider minHeight (#4715) 2021-12-26 23:56:03 +00:00
Josh Roy
84326cf13e
Fix LocationUtil#getSafeDestination NSME on older versions (#4708)
Fixes a NoSuchMethodError from old guava versions in old MC versions.

Fixes #4703
2021-12-23 11:55:31 +00:00
Josh Roy
c4e62ae22b
Remove usused configuration classes (#4707)
These were not used since configurate, no plugin should be using this, and it causes compile errors on the latest spigot version.
2021-12-23 01:18:02 +00:00
pop4959
253185bd0e Remove ignore teleport metadata 2021-12-12 22:23:56 +00:00
Josh Roy
dae519494e
Fix stack overflow when disabling commands from other addons (#4680) 2021-12-11 19:16:23 -08:00
Josh Roy
dc27af78bf Update to MC 1.18.1 2021-12-11 12:13:50 +00:00
Josh Roy
7794634d37
Add support for multiple queued TPA requests (#3801)
This PR adds support for players to receive multiple teleport requests, which are queued and can be managed independently of one another.

All commands should retain their current behavior but have some new additions;
* `/tpaccept`: now allows you to specify a player or `*` to accept a specific player's or all players' teleport request(s) respectively.
  - Using a wildcard will only accept all tpahere requests, as players can't teleport to multiple places simultaneously.
* `/tpdeny`: now allows you to specify a player or `*` to deny a specific player's or all players' teleport request(s) respectively.

This PR also adds a new setting for the maximum amount of pending TPA requests a user can have at once.
```yml
# The maximum amount of simultaneous tpa requests that can be pending for any given user.
# Once at this threshold, any new tpa requests will bump the oldest tpa requests out of queue.
# Defaults to 5.
tpa-max-amount: 5
```

Closes #3769
Closes #1550

Co-authored-by: Mariell Hoversholm <proximyst@proximy.st>
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
2021-12-04 14:40:06 +00:00
Josh Roy
d091d6902c
Fix safelogin support with 1.18 world heights (#4667)
Fixes #4665.
2021-12-03 20:31:36 +00:00
MD
c45c741210 Bump supported version to 1.18 release 2021-11-30 16:33:05 +00:00
MD
e35c65b976 Refactor world info provider; only clamp to logical height when already below
Fixes #4657.
2021-11-30 16:33:05 +00:00
MD
1509cf8978 Support 0>y>256 for safe/random teleports (#4641)
Co-authored-by: pop4959 <pop4959@gmail.com>
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
2021-11-30 16:33:05 +00:00
Josh Roy
b6ba1768a1 Mark 1.18 as a supported version 2021-11-30 16:33:05 +00:00
Josh Roy
f8ca1bae5d
Fix offline player error in /playtime for versions < 1.15.2 (#4649) 2021-11-25 19:50:49 +00:00
Josh Roy
3c60bcf2de
Allow unsafe homes when force-disable-teleport-safety is enabled (#4650) 2021-11-25 19:47:42 +00:00
nik2143
51c49b0de6
Set a metadata value for vanished players (#4646)
Co-authored-by: Josh Roy <10731363+JRoy@users.noreply.github.com>
2021-11-24 09:57:55 -05:00
Lax
5723dac6ba
Send discord config in dump even when plugin is disabled 2021-11-17 19:15:02 -05:00
Josh Roy
8f679de352
Add offline user support to /playtime (#4619) 2021-11-06 15:41:38 -07:00
Josh Roy
86d435eee1
Move UUID below alts in /seen (#4615) 2021-11-06 13:50:56 -07:00