mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Trying support mulitchat or other chat plugin
Former-commit-id: 4c9e6102ded3c7a8fb4c9cc7c9561d7b84aa865a [formerly dcdd862784b17f7ce91adadb9b156b02d47f9bc3] Former-commit-id: dbb9d7d39e84201cc133863a26b5e2e197ce6185
This commit is contained in:
1 parent
fa0aeeaf08
commit
89bf05eeeb
3 files changed
+6
-5
No files matched your search
@@ -18,8 +18,8 @@ public class ChatListener implements Listener {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
|
||||
public void onChat(final AsyncPlayerChatEvent e) {
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
public void onChat(AsyncPlayerChatEvent e) {
|
||||
if (!plugin.getShopManager().getActions().containsKey(e.getPlayer().getUniqueId())) {
|
||||
plugin.log(plugin.getShopManager().getActions().toString());
|
||||
return;
|
||||
|
||||
@@ -47,7 +47,8 @@ public class PlayerListener implements Listener {
|
||||
* Handles players left clicking a chest. Left click a NORMAL chest with
|
||||
* item : Send creation menu Left click a SHOP chest : Send purchase menu
|
||||
*/
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled=true)
|
||||
//Ignore already cancelled event... Player shouldn't create shop in there...
|
||||
public void onClick(PlayerInteractEvent e) {
|
||||
if (e.getAction() != Action.LEFT_CLICK_BLOCK)
|
||||
return;
|
||||
@@ -168,7 +169,7 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onJoin(final PlayerJoinEvent e) {
|
||||
public void onJoin(PlayerJoinEvent e) {
|
||||
// Notify the player any messages they were sent
|
||||
Bukkit.getScheduler().runTaskLater(QuickShop.instance, new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user