forked from Upstream/CommandPanels
3.16.2.2
This commit is contained in:
parent
5a28956c8f
commit
c3274d7193
resource
src/me/rockyhawk/commandpanels
@ -1,4 +1,4 @@
|
|||||||
version: 3.16.2.1
|
version: 3.16.2.2
|
||||||
main: me.rockyhawk.commandpanels.CommandPanels
|
main: me.rockyhawk.commandpanels.CommandPanels
|
||||||
name: CommandPanels
|
name: CommandPanels
|
||||||
author: RockyHawk
|
author: RockyHawk
|
||||||
|
@ -32,6 +32,14 @@ public class UserInputUtils implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
playerInput.get(e.getPlayer()).panel.placeholders.addPlaceholder("player-input",e.getMessage());
|
playerInput.get(e.getPlayer()).panel.placeholders.addPlaceholder("player-input",e.getMessage());
|
||||||
|
|
||||||
|
//get certain words from the input
|
||||||
|
int c = 0;
|
||||||
|
for(String message : e.getMessage().split("\\s")){
|
||||||
|
playerInput.get(e.getPlayer()).panel.placeholders.addPlaceholder("player-input-" + (c+1),message);
|
||||||
|
c++;
|
||||||
|
}
|
||||||
|
|
||||||
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
plugin.commandTags.runCommands(playerInput.get(e.getPlayer()).panel, PanelPosition.Top,e.getPlayer(), playerInput.get(e.getPlayer()).commands); //I have to do this to run regular Bukkit voids in an ASYNC Event
|
plugin.commandTags.runCommands(playerInput.get(e.getPlayer()).panel, PanelPosition.Top,e.getPlayer(), playerInput.get(e.getPlayer()).commands); //I have to do this to run regular Bukkit voids in an ASYNC Event
|
||||||
|
@ -43,6 +43,13 @@ public class OpenGUI {
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
i = p.getInventory();
|
i = p.getInventory();
|
||||||
|
//if middle or bottom position, old items need to be cleared
|
||||||
|
for (int c = 0; getInvSize(i,position) > c; ++c) {
|
||||||
|
if(pconfig.getConfigurationSection("item").getKeys(false).contains(String.valueOf(c))){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
setItem(null, c, i, p, position);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<String> itemList = pconfig.getConfigurationSection("item").getKeys(false);
|
Set<String> itemList = pconfig.getConfigurationSection("item").getKeys(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user