Andrew Katz
5aaa0398bf
Feature: API for AFK and excluded players ( #88 )
...
* remove afk listener and move to own class
* implement afk listener with proper afk check
* use instant instead of millis
* Creation of interface to allow external plugins to exclude players
* Addition of better Javadoc
* Move Essentials checks; Add example Provider classes
* Quickfix: style
* wippy wip
* Expand AFK and Exclusion APIs to allow control of logic flow + more
Also change examples and remove stafffacilities
* Major cleanup
* Clean imports
* Add a comment
* Modernize vanished check and clean up ternary
* Cleanup ternary and fix typos that caused bugs
* Remove some terrible code I wrote without thinking
* misunderstanding
* A few minor fixes and cleanups
* Fix listeners to monitor priority
* Requested changes
* Fix bugs
* take out the trash :)
Remove things I thought I removed but didn't
Co-authored-by: mail@chojo.de <mail@chojo.de>
2021-07-09 18:22:22 -07:00
Florian Fülling
f27335e242
Assign proper listener priority ( #86 )
...
The listener is currently listening on a medium priority, but is only used for monitoring. Therefore it should use the monitoring level to ensure that the event was already handled by all other listeners which can potentially modify this event.
2021-03-20 19:48:54 -07:00
Mykyta Komarnytskyy
a89831318e
Edit default exclusion states
...
A lot of issues are caused by users not knowing that these exclusions exist and opening bug reports when Harbor doesn't work as expected.
It's best if we just keep these off by default.
2021-02-26 22:21:44 -08:00
Mykyta Komarnytskyy
e2341799ba
Hard AFK exclusion toggle
2021-02-25 08:28:53 -08:00
Mykyta Komarnytskyy
c77c747858
Use pose check instead of Player::isSleeping checks
...
This may potentially resolve some issues with plugins that allow you to "lay" on the ground to sleep.
2021-02-25 08:28:16 -08:00
Mykyta Komarnytskyy
67fdfa05b4
Replace in the correct message
2020-12-11 11:40:26 -08:00
Mykyta Komarnytskyy
bb163443e4
1.6.4-SNAPSHOT
2020-12-11 11:33:58 -08:00
Mykyta Komarnytskyy
229b4ee3a7
Clean up messages
2020-12-11 11:33:21 -08:00
Mykyta Komarnytskyy
81563404db
Fix #72
2020-12-11 11:26:01 -08:00
Mykyta Komarnytskyy
925d1ab391
Server thread helper
2020-12-11 11:20:45 -08:00
Mykyta Komarnytskyy
308d890c00
Clear weather for instant skip as well
2020-12-11 11:07:50 -08:00
Lucy
2c871f2b26
add support for papi placeholders in BedListener messages, ( #73 )
...
added papi dependency to pom.xml,
added placeholderapi as softdepend in plugin.yml
2020-12-07 14:57:17 -08:00
Mykyta Komarnytskyy
42f51938e3
Fix proportional acceleration speed calculation
2020-11-30 08:23:08 -08:00
Mykyta Komarnytskyy
fc625c9da0
1.6.3
2020-11-14 16:40:12 -08:00
Mykyta Komarnytskyy
7ad3625614
Restore CI workflow
2020-11-13 13:57:46 -08:00
Mykyta Komarnytskyy
ce28be83ad
Fix #70
...
This fixes the thunderstorm looping bug by forcing players out of bed immediately and only removing the world from the skipping queue after 20 ticks.
2020-11-10 10:33:51 -08:00
Mykyta Komarnytskyy
130953b216
Fix #62
...
Don't count sleepingIgnored() as an exclusion because this causes conflicts with other plugins. Oftentimes it's difficult to track down which plugin is causing sleeping to be ignored, so it's easier to just remove the check.
2020-11-10 10:31:37 -08:00
Mykyta Komarnytskyy
b2b3baccf4
Remove 1.6.2 configuration version checker
2020-11-10 10:29:45 -08:00
Mykyta Komarnytskyy
2c1755cab6
Bump version (1.6.3-SNAPSHOT)
2020-11-10 10:28:57 -08:00
Mykyta Komarn
4d158872d3
Force skip command + 1.6.2
2020-09-28 21:07:36 -07:00
Mykyta Komarn
c5d76a70a2
Remove unnecessary Math#max call
2020-09-28 20:24:53 -07:00
Mykyta Komarn
93b3a0424e
Fix bossbar sticking on world change
2020-09-28 20:17:38 -07:00
Mykyta Komarn
76deb40cb0
Add fallback values for exclusions
2020-09-28 20:17:20 -07:00
Mykyta Komarn
6dfd8d80e1
Clarify instant skip in configuration
2020-09-28 20:17:07 -07:00
Mykyta Komarn
de06bfdaf0
Fix up fallback AFK detection system
2020-08-21 11:26:37 -07:00
Mykyta Komarn
0b02fcb696
Remove workflow
...
The workflow won't work anymore since Spigot 1.14 is a required dependency.
2020-08-20 12:19:34 -07:00
Mykyta Komarn
7868fb1047
Use correct fastutil location
2020-08-20 08:25:05 -07:00
Mykyta Komarn
c2a32f27e8
Clean up + more Javadocs
...
We're getting closer to a final, stable. *bug-free* build of refactored Harbor.
2020-08-19 17:08:41 -07:00
Mykyta Komarn
54c062816f
Code refactor
...
Refactor a lot of Harbor's systems to eliminate use of static variables where possible. Also generally clean up a lot of old code.
2020-08-19 14:36:53 -07:00
Mykyta
9fe4e387cd
🧹 Clear cooldowns after night skip
...
This'll clear up some memory on lorger servers.
2020-05-06 07:06:35 -07:00
Mykyta
8ade4db803
🔨 Actually make config checker work as intended
...
Don't spam it on every player join. I had no brain. This is bad.
2020-05-06 07:05:55 -07:00
Mykyta
3b137b1dad
👌 Refactor the config
...
Include a getConfig() method to simplify things a tad.
2020-05-06 07:00:52 -07:00
Mykyta
247fb0bd10
🧹 Config warning + small cleanups
...
Now warn users if their config is too old for Harbor to recognize.
Clean up some formatting.
2020-04-25 08:19:34 -07:00
Mykyta
7b4c55e9a3
🌠 Use a HashSet instead of ArrayList
...
Harbor runs .contains() a lot, which is a lot more performant in Sets.
2020-04-24 15:45:42 -07:00
Mykyta
b5eaeeb7f1
👌 Fallback value for bossbar color
...
This will prevent console errors if you use the 1.6 config for 1.6.2.
2020-04-20 09:28:31 -07:00
Mykyta
560f0f1a8d
⚡ Exclude players in adventure mode
2020-04-20 08:48:47 -07:00
Mykyta
792328de46
⚡ Thunderstorm looping fix
2020-04-19 10:36:16 -07:00
Mykyta
e13660659a
Merge branch 'master' of https://github.com/nkomarn/Harbor
2020-04-19 10:35:38 -07:00
Mykyta
4524dc15f7
🧹 Cleanup + ignore vanished players in messages
2020-04-19 10:35:12 -07:00
Mykyta
7c8819bb35
⚡ Thunderstorm looping fix
...
Also some small cleanup and vanish checking for bed messages.
2020-04-19 06:53:23 -07:00
Mykyta
737c9bdc40
📋 Whitelist mode for worlds list
2020-04-04 20:45:03 -07:00
Mykyta
62ff190aa5
⚡ Fix up cooldowns
2020-04-04 12:40:44 -07:00
Mykyta
7644a7faad
🌿 Update build procedure and funding info
2020-04-04 11:36:14 -07:00
Mykyta
f727f2738e
⏱ Proportional acceleration
2020-04-03 21:27:10 -07:00
Mykyta
35407752c9
⚡ Cooldowns + clean up the command
2020-04-03 14:47:37 -07:00
Mykyta
b5c7f60fdd
🔨 Fix up weather clearing + improve day checking
2020-04-03 12:28:49 -07:00
Mykyta
04994edbf4
🌿 Major config refactoring
2020-04-03 10:50:28 -07:00
Mykyta
63f03458d0
💥 Nuke the auto-updater
2020-04-02 11:05:01 -07:00
Mykyta
e8de0f35c1
🌧 Independent weather toggles + instant skip
2020-04-02 10:24:32 -07:00
Mykyta
99d917177c
👻 Option to ignore vanished players
2020-03-22 08:00:14 -07:00