Signed-off-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
03254ed85d
Commit
b2c0003570
@ -149,7 +149,7 @@ public class GUI {
|
||||
if(!type.isAssignable())
|
||||
continue;
|
||||
|
||||
SWItem item = new SWItem(SWItem.getMaterial("STONE_BUTTON"), type.name());
|
||||
SWItem item = new SWItem(type.getMaterial(), type.name());
|
||||
if(type.fightType())
|
||||
item.setEnchanted(true);
|
||||
|
||||
|
@ -48,17 +48,17 @@ public class SchematicCommand extends SWCommand {
|
||||
super("schematic", Bukkit.getPluginManager().getPlugin("Teamserver") == null ? new String[]{"schem", "/schem", "/schematic"} : new String[]{"schem"});
|
||||
}
|
||||
|
||||
@Register("help")
|
||||
public void pagedHelp(Player player, HelpPage page) {
|
||||
printHelpPage(player, page);
|
||||
}
|
||||
|
||||
@Register(help = true)
|
||||
@Register("help")
|
||||
public void genericHelp(Player player, String... args) {
|
||||
printHelpMainPage(player);
|
||||
}
|
||||
|
||||
@Register("help")
|
||||
public void pagedHelp(Player player, HelpPage page) {
|
||||
printHelpPage(player, page);
|
||||
}
|
||||
|
||||
@Register("gui")
|
||||
public void gui(Player player) {
|
||||
GUI.list(player);
|
||||
@ -135,6 +135,10 @@ public class SchematicCommand extends SWCommand {
|
||||
@Register("save")
|
||||
@Register("s")
|
||||
public void saveSchem(Player player, @Mapper("dirStringMapper") String name) {
|
||||
if (name.endsWith("/")) {
|
||||
player.sendMessage(SchematicSystem.PREFIX + "§cDu must auch einen Namen für die Schematic nach dem Ordner angeben");
|
||||
return;
|
||||
}
|
||||
SteamwarUser user = getUser(player);
|
||||
if (name.startsWith("/")) name = name.substring(1);
|
||||
String[] layers = name.split("/");
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren