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
A248 and GitHub
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
A248 and GitHub
f2bc472f6f
Implement proper multi-threading
...
Replace raw Thread instantiation with a thread pool.
2019-11-23 10:56:28 -05:00
A248 and GitHub
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
A248 and GitHub
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
A248 and GitHub
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
A248 and GitHub
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
A248 and GitHub
d7144e445e
Update NPC.java with getText() and getItem()
...
Adds these methods to the NPC interface.
2019-10-31 19:50:46 -04:00