Compare commits
No commits in common. "f734748df8c495d2db4b459dc55f4b5e4050b91c" and "ff5c559f9380b5bf38c45f0d3a4f078f255273b2" have entirely different histories.
f734748df8
...
ff5c559f93
@ -60,7 +60,9 @@ public class ItemChange {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!SelectConfig.UseItem_AllowToggle || Select_Database.selectItemStatus(player)) {
|
if (!SelectConfig.UseItem_AllowToggle || Select_Database.selectItemStatus(player)) {
|
||||||
|
send.debugmsg(Main.plugin, "1");
|
||||||
if (SelectConfig.UseItem_InventorySlotEnforce || player.getInventory().getItem(slot - 1) == null) {
|
if (SelectConfig.UseItem_InventorySlotEnforce || player.getInventory().getItem(slot - 1) == null) {
|
||||||
|
send.debugmsg(Main.plugin, "2");
|
||||||
Give_UseItem.onGive(player);
|
Give_UseItem.onGive(player);
|
||||||
if (SelectConfig.Cursor_ToGUIItem_OnLogin) {
|
if (SelectConfig.Cursor_ToGUIItem_OnLogin) {
|
||||||
if (SelectConfig.Cursor_ToGUIItem_OnlyOnFirstLogin) {
|
if (SelectConfig.Cursor_ToGUIItem_OnlyOnFirstLogin) {
|
||||||
|
@ -38,6 +38,7 @@ public class Obj_Select {
|
|||||||
GUI_FillItem_Item = yamlConfiguration_gui.getString("GUI.FillItem.GlassPaneCollor");
|
GUI_FillItem_Item = yamlConfiguration_gui.getString("GUI.FillItem.GlassPaneCollor");
|
||||||
} else GUI_FillItem_Item = yamlConfiguration_gui.getString("GUI.FillItem.Item");
|
} else GUI_FillItem_Item = yamlConfiguration_gui.getString("GUI.FillItem.Item");
|
||||||
|
|
||||||
|
|
||||||
Boolean Command_Alias_Enable = yamlConfiguration_gui.getBoolean("Command.Alias");
|
Boolean Command_Alias_Enable = yamlConfiguration_gui.getBoolean("Command.Alias");
|
||||||
Boolean Command_Permission = yamlConfiguration_gui.getBoolean("Command.Permission.Required");
|
Boolean Command_Permission = yamlConfiguration_gui.getBoolean("Command.Permission.Required");
|
||||||
|
|
||||||
@ -45,7 +46,7 @@ public class Obj_Select {
|
|||||||
for (String key : yamlConfiguration_gui.getConfigurationSection("Slots").getKeys(false)) {
|
for (String key : yamlConfiguration_gui.getConfigurationSection("Slots").getKeys(false)) {
|
||||||
Slot slot = new Slot(yamlConfiguration_gui.getInt("Slots." + key + ".Slot") - 1,
|
Slot slot = new Slot(yamlConfiguration_gui.getInt("Slots." + key + ".Slot") - 1,
|
||||||
yamlConfiguration_gui.getBoolean("Slots." + key + ".Enable"),
|
yamlConfiguration_gui.getBoolean("Slots." + key + ".Enable"),
|
||||||
// yamlConfiguration_gui.getBoolean("Slots." + key + ".Item.Removable"),
|
// yamlConfiguration_gui.getBoolean("Slots." + key + ".Item.Removable"),
|
||||||
yamlConfiguration_gui.getBoolean("Slots." + key + ".Item.Empty"),
|
yamlConfiguration_gui.getBoolean("Slots." + key + ".Item.Empty"),
|
||||||
yamlConfiguration_gui.getInt("Slots." + key + ".Item.Amount"),
|
yamlConfiguration_gui.getInt("Slots." + key + ".Item.Amount"),
|
||||||
yamlConfiguration_gui.getBoolean("Slots." + key + ".Item.PlayerHead.Enable"),
|
yamlConfiguration_gui.getBoolean("Slots." + key + ".Item.PlayerHead.Enable"),
|
||||||
@ -76,7 +77,7 @@ public class Obj_Select {
|
|||||||
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.File.Path"),
|
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.File.Path"),
|
||||||
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.Option.Path"),
|
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.Option.Path"),
|
||||||
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.Option.Premat"),
|
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.Option.Premat"),
|
||||||
// yamlConfiguration_gui.getBoolean("Slots." + key + ".SetConfig.Value.ChatInput"),
|
// yamlConfiguration_gui.getBoolean("Slots." + key + ".SetConfig.Value.ChatInput"),
|
||||||
|
|
||||||
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.Value.LeftClick.String"),
|
yamlConfiguration_gui.getString("Slots." + key + ".SetConfig.Value.LeftClick.String"),
|
||||||
yamlConfiguration_gui.getBoolean("Slots." + key + ".SetConfig.Value.LeftClick.Boolean"),
|
yamlConfiguration_gui.getBoolean("Slots." + key + ".SetConfig.Value.LeftClick.Boolean"),
|
||||||
|
@ -23,9 +23,7 @@ public class CmdExecuter_GUIItem implements CommandExecutor, TabCompleter {
|
|||||||
Player player = (Player) sender;
|
Player player = (Player) sender;
|
||||||
if (sender.hasPermission("commandgui.useitem.toggle")) {
|
if (sender.hasPermission("commandgui.useitem.toggle")) {
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
if (SelectConfig.UseItem_AllowToggle) {
|
Help.sendGUIItemHelp(sender, prefix);
|
||||||
Help.sendGUIItemHelp(sender, prefix);
|
|
||||||
} else send.sender(sender, "§4UseItem toggle is disabled!");// todo
|
|
||||||
} else {
|
} else {
|
||||||
if (args.length == 1 || args.length == 2) {
|
if (args.length == 1 || args.length == 2) {
|
||||||
if (sender instanceof Player) {
|
if (sender instanceof Player) {
|
||||||
@ -52,7 +50,7 @@ public class CmdExecuter_GUIItem implements CommandExecutor, TabCompleter {
|
|||||||
Help.sendHelp(player, prefix);
|
Help.sendHelp(player, prefix);
|
||||||
|
|
||||||
}
|
}
|
||||||
} else send.sender(sender, "§4UseItem toggle is disabled!");// todo
|
}
|
||||||
} else sender.sendMessage(SelectMessages.OnlyForPlayer);
|
} else sender.sendMessage(SelectMessages.OnlyForPlayer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user