mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Finish SignGUI System
Former-commit-id: 208051f1eb261b62033e06a8ef6965cdc316023a [formerly 6f64772eaf16501cff73727808dfeab55debae1d] Former-commit-id: e64227149615b64940de28ec9436821eeb4931fe
This commit is contained in:
1 parent
96942d5b40
commit
fe97965c55
2 files changed
+6
-2
No files matched your search
@@ -48,7 +48,9 @@ public class QS implements CommandExecutor {
|
||||
this.plugin = plugin;
|
||||
}
|
||||
public void signGUIApi(ArrayList<Object> data, String arg) {
|
||||
|
||||
Shop shop = (Shop) data.get(0);
|
||||
String type = (String) data.get(1);
|
||||
Player player = Bukkit.getPlayer((String) data.get(3));
|
||||
}
|
||||
private void setUnlimited(CommandSender sender) {
|
||||
if (sender instanceof Player && sender.hasPermission("quickshop.unlimited")) {
|
||||
@@ -92,6 +94,7 @@ public class QS implements CommandExecutor {
|
||||
ArrayList<Object> data = new ArrayList<>();
|
||||
data.add(shop);
|
||||
data.add(type);
|
||||
data.add(((Player)sender).getUniqueId());
|
||||
signPlayerCache.put(((Player)sender).getUniqueId(),data);
|
||||
Util.sendSignEditForGUI((Player)sender, texts);
|
||||
} catch (InvocationTargetException e) {
|
||||
|
||||
@@ -16,6 +16,7 @@ import org.bukkit.inventory.Inventory;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
import org.bukkit.util.BlockIterator;
|
||||
import org.maxgamer.quickshop.QuickShop;
|
||||
import org.maxgamer.quickshop.Command.QS;
|
||||
import org.maxgamer.quickshop.Shop.DisplayItem;
|
||||
import org.maxgamer.quickshop.Shop.Info;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
@@ -205,7 +206,7 @@ public class PlayerListener implements Listener {
|
||||
public void onPlayerQuit(PlayerQuitEvent e) {
|
||||
// Remove them from the menu
|
||||
plugin.getShopManager().getActions().remove(e.getPlayer().getUniqueId());
|
||||
Util.inventoryCheck(e.getPlayer().getInventory()); //Check it!
|
||||
QS.signPlayerCache.remove(e.getPlayer().getUniqueId());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
||||
Reference in new issue
Block a user