mirror of
https://github.com/DieReicheErethons/Brewery.git
synced 2024-09-29 04:07:30 +02:00
Finally Beta!
This commit is contained in:
parent
7a236a4297
commit
62f1d7686a
@ -1,9 +1,9 @@
|
|||||||
name: Brewery
|
name: Brewery
|
||||||
version: 0.3
|
version: 0.4
|
||||||
main: com.dre.brewery.P
|
main: com.dre.brewery.P
|
||||||
authors: [Frank Baumann]
|
authors: [Milan Albrecht, Frank Baumann]
|
||||||
softdepend: [Vault]
|
softdepend: [Vault]
|
||||||
commands:
|
commands:
|
||||||
brewery:
|
brewery:
|
||||||
description: Reference command for Brewery.
|
description: Command for Administration
|
||||||
aliases: [brew,br]
|
aliases: [brew,br]
|
@ -383,7 +383,7 @@ public class P extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return worldName;
|
||||||
}
|
}
|
||||||
|
|
||||||
// create empty World save Sections
|
// create empty World save Sections
|
||||||
@ -406,13 +406,13 @@ public class P extends JavaPlugin {
|
|||||||
page = 1;
|
page = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
msg(sender, ChatColor.GRAY + "-------------- " + ChatColor.WHITE + "Seite " + ChatColor.GOLD + page + ChatColor.WHITE + "/" + ChatColor.GOLD + pages + ChatColor.GRAY + " --------------");
|
sender.sendMessage(ChatColor.GRAY + "-------------- " + ChatColor.WHITE + "Seite " + ChatColor.GOLD + page + ChatColor.WHITE + "/" + ChatColor.GOLD + pages + ChatColor.GRAY + " --------------");
|
||||||
|
|
||||||
ListIterator<String> iter = strings.listIterator((page - 1) * 7);
|
ListIterator<String> iter = strings.listIterator((page - 1) * 7);
|
||||||
|
|
||||||
for (int i = 0; i < 7; i++) {
|
for (int i = 0; i < 7; i++) {
|
||||||
if (iter.hasNext()) {
|
if (iter.hasNext()) {
|
||||||
msg(sender, iter.next());
|
sender.sendMessage(iter.next());
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ public class WorldListener implements Listener {
|
|||||||
if (world.getName().startsWith("DXL_")) {
|
if (world.getName().startsWith("DXL_")) {
|
||||||
P.p.loadWorldData(P.p.getDxlName(world.getName()), world);
|
P.p.loadWorldData(P.p.getDxlName(world.getName()), world);
|
||||||
} else {
|
} else {
|
||||||
P.p.loadWorldData(event.getWorld().getUID().toString(), world);
|
P.p.loadWorldData(world.getUID().toString(), world);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user