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())
|
if(!type.isAssignable())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
SWItem item = new SWItem(SWItem.getMaterial("STONE_BUTTON"), type.name());
|
SWItem item = new SWItem(type.getMaterial(), type.name());
|
||||||
if(type.fightType())
|
if(type.fightType())
|
||||||
item.setEnchanted(true);
|
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"});
|
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 = true)
|
||||||
@Register("help")
|
@Register("help")
|
||||||
public void genericHelp(Player player, String... args) {
|
public void genericHelp(Player player, String... args) {
|
||||||
printHelpMainPage(player);
|
printHelpMainPage(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register("help")
|
|
||||||
public void pagedHelp(Player player, HelpPage page) {
|
|
||||||
printHelpPage(player, page);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Register("gui")
|
@Register("gui")
|
||||||
public void gui(Player player) {
|
public void gui(Player player) {
|
||||||
GUI.list(player);
|
GUI.list(player);
|
||||||
@ -135,6 +135,10 @@ public class SchematicCommand extends SWCommand {
|
|||||||
@Register("save")
|
@Register("save")
|
||||||
@Register("s")
|
@Register("s")
|
||||||
public void saveSchem(Player player, @Mapper("dirStringMapper") String name) {
|
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);
|
SteamwarUser user = getUser(player);
|
||||||
if (name.startsWith("/")) name = name.substring(1);
|
if (name.startsWith("/")) name = name.substring(1);
|
||||||
String[] layers = name.split("/");
|
String[] layers = name.split("/");
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren