Versionssupport für 1.8, 1.9 und 1.10 #35
@ -126,6 +126,10 @@ class GUI {
|
|||||||
p.closeInventory();
|
p.closeInventory();
|
||||||
changeType(p, schem);
|
changeType(p, schem);
|
||||||
});
|
});
|
||||||
|
inv.setItem(5, SWItem.getMaterial(""), "§eDownload", click -> {
|
||||||
|
p.closeInventory();
|
||||||
|
SchematicCommand.download(p, schem);
|
||||||
|
});
|
||||||
inv.setItem(6, SWItem.getMaterial("SKULL_ITEM"), "§eMitglieder", click -> {
|
inv.setItem(6, SWItem.getMaterial("SKULL_ITEM"), "§eMitglieder", click -> {
|
||||||
p.closeInventory();
|
p.closeInventory();
|
||||||
delmembers(p, schem);
|
delmembers(p, schem);
|
||||||
|
@ -308,6 +308,15 @@ public class SchematicCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void download(Player player, Schematic schematic){
|
||||||
|
if(schematic.getSchemOwner() != SteamwarUser.get(player.getUniqueId()).getId()){
|
||||||
|
player.sendMessage("§cDu darfst nur deine eigenen Schematics herunterladen!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
player.sendMessage(DownloadSchematic.getLink(schematic));
|
||||||
|
}
|
||||||
|
|
||||||
private void addmember(Player player, String[] args){
|
private void addmember(Player player, String[] args){
|
||||||
if(args.length < 3){
|
if(args.length < 3){
|
||||||
help(player);
|
help(player);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren