Current state
Dieser Commit ist enthalten in:
Ursprung
5c05a4a7db
Commit
18525814d8
@ -1 +1 @@
|
|||||||
Subproject commit 92bea6255f6cae312674c7badffb7a8a44c4daee
|
Subproject commit bd626bb4e6366f1e5e7e64765a6e47fefe05b16a
|
@ -27,8 +27,11 @@ import org.bukkit.event.EventHandler;
|
|||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.player.PlayerJoinEvent;
|
import org.bukkit.event.player.PlayerJoinEvent;
|
||||||
|
import org.bukkit.event.player.PlayerLocaleChangeEvent;
|
||||||
import org.bukkit.event.player.PlayerQuitEvent;
|
import org.bukkit.event.player.PlayerQuitEvent;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
|
|
||||||
public class PlayerJoinedEvent implements Listener{
|
public class PlayerJoinedEvent implements Listener{
|
||||||
|
|
||||||
@ -48,6 +51,13 @@ public class PlayerJoinedEvent implements Listener{
|
|||||||
|
|
||||||
event.setJoinMessage("§a§l» §r" + player.getDisplayName());
|
event.setJoinMessage("§a§l» §r" + player.getDisplayName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler
|
||||||
|
private void onLocale(PlayerLocaleChangeEvent event) {
|
||||||
|
if(!Statement.productionDatabase()) {
|
||||||
|
SteamwarUser.get(event.getPlayer().getUniqueId()).setLocale(Locale.forLanguageTag(event.getLocale()), false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
private void onQuit(PlayerQuitEvent event) {
|
private void onQuit(PlayerQuitEvent event) {
|
||||||
|
@ -131,7 +131,7 @@ public class PersonalKit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static PersonalKit getKitInUse(int userID, String gamemode) {
|
public static PersonalKit getKitInUse(int userID, String gamemode) {
|
||||||
return getKitInUse.select(userID, gamemode);
|
return getKitInUse.select(userID, gamemode, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String saveInvConfig(String name, ItemStack[] inv) {
|
private static String saveInvConfig(String name, ItemStack[] inv) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren