Commit Graph
47 Commits
Author SHA1 Message Date
Jitse Boonstra e4dc20e3ce Changed 'evt' naming to 'event' naming to match rest of project
Code refactor from old PR
2020-06-22 18:19:33 +02:00
Mooselk d7fc0c81e5 Fixed NPE 2020-05-14 16:09:47 -07:00
Jitse Boonstra 8ef051ca70 Fixed spacing 2020-04-26 17:54:56 +02:00
Jitse Boonstra b5e69e9126 Fix for #80, added API usage for NPC#getUniqueId 2020-04-26 17:35:41 +02:00
Jitse Boonstra 95e9cd5f27 For version 2.7-SNAPSHOT. 2020-04-26 12:09:58 +02:00
Jitse BoonstraandGitHub 820a0f1c36 Merge pull request #77 from FrederikHeinrich/patch-1
Update NPCBase.java
2020-04-23 18:52:08 +02:00
Jitse BoonstraandGitHub b6262b714f Refactored method naming
Changed NPC#getUUID to more appropriate NPC#getUniqueId
2020-04-23 18:51:21 +02:00
FreddiandGitHub 6d57bf8168 Update NPCBase.java 2020-04-22 05:12:19 +02:00
A248 b4ce4fbf68 Player#isOnline is not thread safe
CraftBukkit 1.8.8 implementation checks whether Bukkit.getPlayer(<player
uuid>) != null. Bukkit.getPlayer(UUID) is itself not thread safe.
2020-04-20 16:02:58 -04:00
A248 b00850b19d Permit periodic task instead of PlayerMoveEvent through NPCLibOptions
Adds NPCLibOptions as an optional parameter to NPCLib's constructor. The
movement handling specified by the NPCLibOptions will determine whether
to use the PlayerMoveEvent or a task.
2020-04-20 15:16:24 -04:00
A248 dfd916dc97 No need to listen for PlayerKickEvent - quit event fires anyway
The PlayerQuitEvent is fired even when the player is kicked.
2020-04-19 18:56:47 -04:00
Jitse Boonstra ce251d8167 Fixed tab name issue, added metrics, changed version to 2.6-SNAPSHOT 2020-04-18 13:39:10 +02:00
Jitse Boonstra 0c8e6dc4a8 Extra code to prevent infinite loop (part of #70) 2020-04-18 10:22:06 +02:00
Jitse Boonstra 4024312706 Some work to solve #70 2020-04-18 10:16:42 +02:00
Jitse Boonstra 900451b053 Added square method to remove ugly code. 2020-04-15 22:24:01 +02:00
Jitse Boonstra eb01c0ff46 Fixed respawn issue (#69) and updated version to 2.5.1.-SNAPSHOT. 2020-04-15 20:10:03 +02:00
Emmanuel Lampe f587cc6cfa Fixed labymod emote 2020-04-13 12:38:35 +02:00
Jitse Boonstra 33a8615aad Added support for LabyMod EmoteAPI. 2020-04-12 17:01:18 +02:00
Jitse Boonstra e47dbc51d0 Improved auto-show handling and fix for #59 2020-04-11 19:57:12 +02:00
MrMicky efdabf01b9 Update Hologram 2020-04-10 16:07:20 +02:00
MrMicky 493118fa3b Update Hologram 2020-04-10 13:58:41 +02:00
Jitse Boonstra 6a6a04b00d Removed unnecessary code. 2020-03-14 23:35:42 +01:00
Jitse Boonstra c9c71ba80d Patch for hologram glitch in 1.15 R1. 2020-03-14 23:29:07 +01:00
MrMicky fbf4b46858 Cleanup some code (fix warns, fix NPE, remove duplicates) 2020-02-19 14:57:07 +01:00
A248andGitHub a9e06eab79 Change thread pool type
Replace cached thread pool (Executors.newCachedThreadPool()) with single thread pool (Executors.newSingleThreadExecutor()). The single thread executor is more efficient for lazy asynchronous operations.
2019-11-23 11:07:18 -05:00
A248andGitHub f2bc472f6f Implement proper multi-threading
Replace raw Thread instantiation with a thread pool.
2019-11-23 10:56:28 -05:00
A248andGitHub b5621816cb Update ChunkListener to fix a minor NPE bug
Fixes a NullPointerException at the root of the problem. Bukkit.getPlayer(UUID) can return a null value, so a simple null check will do the trick.
2019-11-06 19:00:04 -05:00
A248andGitHub 47d3417606 Updated NPCBase to with NPC#getState(NPCState)
Implemented net.jitse.npclib.api.NPC#getState(NPCState) to return a boolean indicating whether a state is toggled or not.
2019-10-31 20:14:46 -04:00
A248andGitHub 73df32172e Add getState(NPCState)
Adds NPC#getState(NPCState) to return a boolean indicating whether the NPC in question has a specific state.
2019-10-31 20:10:20 -04:00
A248andGitHub b97361516c Make NPCBase.java compliant with updated NPC.java
Makes NPCBase compliant with net.jitse.npclib.api.NPC.
Implements NPC#getText() to return List<String> and NPC#getSlot(NPCSlot slot) to return ItemStack.
2019-10-31 19:57:04 -04:00
A248andGitHub d7144e445e Update NPC.java with getText() and getItem()
Adds these methods to the NPC interface.
2019-10-31 19:50:46 -04:00
Jitse Boonstra 5650cbd1e2 For 2.3-SNAPSHOT, text update method (#11)! 2019-10-29 12:43:54 +01:00
Jitse Boonstra d9558eef63 Text update function working on v1.8 R1! 2019-10-28 20:10:47 +01:00
Jitse Boonstra 3dceca16b9 More things for #11 😄 2019-10-21 20:21:03 +02:00
Jitse Boonstra 4d2140d24c Started thinking about the implemtation of #11 2019-10-21 09:49:23 +02:00
Jitse Boonstra 6f3f9b05d4 For v2.2. 2019-10-20 20:04:38 +02:00
Jitse Boonstra cd1115d2a3 More code for #20
Started work on 1.8 R2 to 1.9 R2 with some slight errors, will be fixed later. 1.8 R1 should be working though.
2019-10-20 11:36:37 +02:00
Jitse Boonstra 96028d2ca1 Started work on #20 2019-10-20 10:48:12 +02:00
Kneesnap bd172a100a Fully fix kick bug for all versions.
The problem was that if a scoreboard team is sent while it's already registered, the player will disconnect.
Since there does not appear to be any downside to never removing the team,
we just won't remove the team, and send the team only once.
If there are any problems with this in the future, we can implement a smart solution which will be able to handle the packet sending properly.
2019-09-25 15:02:37 -07:00
Kneesnap bc1c9677ba Bug-fix the packet listener. 2019-09-23 13:59:49 -07:00
Kneesnap 1c035ba290 Fix 1.12.X support. 2019-09-23 13:33:59 -07:00
Kneesnap dfa1d14f0e Avoid unintentionally loading loads of chunks with Location#getChunk 2019-09-22 12:23:09 -07:00
Kneesnap 3b62c85e7e Handle if a player was kicked, instead of quitting normally. 2019-09-22 12:18:53 -07:00
Kneesnap 0ecc238e6a Player move optimization. 2019-09-22 12:09:48 -07:00
Kneesnap d9ca07b195 Optimize important code, add distance interaction check. 2019-09-20 14:34:16 -07:00
Jitse Boonstra 6b08114366 For v2.0.1 (minor bug fix #26) 2019-08-07 11:16:34 +02:00
Jitse Boonstra e0752c5d7e Updated the library. 2019-08-03 13:47:12 +02:00