mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-15 02:04:30 +00:00
Comment for future sanity.
This commit is contained in:
parent
9b88107897
commit
aa7a39d0b0
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,11 @@ public class SignPlayerListener implements Listener
|
||||||
this.ess = ess;
|
this.ess = ess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//This following code below listens to cancelled events to fix a bukkit issue
|
||||||
|
//Right clicking signs with a block in hand, can now fire cancelled events.
|
||||||
|
//This is because when the block place is cancelled (for example not enough space for the block to be placed),
|
||||||
|
//the event will be marked as cancelled, thus preventing 30% of sign purchases.
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOW)
|
@EventHandler(priority = EventPriority.LOW)
|
||||||
public void onPlayerInteract(final PlayerInteractEvent event)
|
public void onPlayerInteract(final PlayerInteractEvent event)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue