- [21:26:53] [Server thread/INFO]: Holag issued server command: /nickt ungespieltxx
- [21:26:54] [Netty Epoll Server IO #3/ERROR]: java.lang.NullPointerException
- [21:26:54] [Server thread/INFO]: luigi2602 lost connection: Disconnected
- [21:26:54] [Server thread/INFO]: luigi2602 left the game.
- [21:27:01] [Server thread/INFO]: Holag issued server command: /nickt ungespielt
- [21:27:10] [User Authenticator #3/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:27:11] [Netty Epoll Server IO #0/ERROR]: java.lang.NullPointerException
- [21:27:11] [Server thread/INFO]: luigi2602[/91.53.83.95:59430] logged in with entity id 17 at ([world]606.5810172152824, 61.0, 539.0804971628384)
- [21:27:11] [Server thread/INFO]: luigi2602 lost connection: Internal Exception: java.io.IOException: Error while writev(...): Connection reset by peer
- [21:27:11] [Server thread/INFO]: luigi2602 left the game.
- [21:27:24] [User Authenticator #4/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:27:24] [Server thread/INFO]: luigi2602[/91.53.83.95:59436] logged in with entity id 18 at ([world]606.5810172152824, 61.0, 539.0804971628384)
- [21:27:49] [Server thread/INFO]: Holag issued server command: /nickt unge
- [21:27:49] [Netty Epoll Server IO #1/ERROR]: java.lang.NullPointerException
- [21:27:49] [Server thread/INFO]: luigi2602 lost connection: Disconnected
- [21:27:49] [Server thread/INFO]: luigi2602 left the game.
- [21:27:59] [User Authenticator #5/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:27:59] [Server thread/INFO]: luigi2602[/91.53.83.95:59469] logged in with entity id 19 at ([world]606.5026826881716, 61.0, 540.1916015792768)
- [21:28:07] [Server thread/INFO]: Holag issued server command: /nickt Gronkh
- [21:28:07] [Netty Epoll Server IO #2/ERROR]: java.lang.NullPointerException
- [21:28:07] [Server thread/INFO]: luigi2602 lost connection: Disconnected
- [21:28:07] [Server thread/INFO]: luigi2602 left the game.
- [21:28:12] [User Authenticator #6/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:28:13] [Netty Epoll Server IO #3/ERROR]: java.lang.NullPointerException
- [21:28:13] [Server thread/INFO]: luigi2602[/91.53.83.95:59483] logged in with entity id 20 at ([world]606.5026826881716, 61.0, 540.1916015792768)
- [21:28:13] [Server thread/INFO]: luigi2602 lost connection: Internal Exception: java.io.IOException: Error while writev(...): Broken pipe
- [21:28:13] [Server thread/INFO]: luigi2602 left the game.
- [21:28:19] [User Authenticator #7/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:28:19] [Netty Epoll Server IO #0/ERROR]: java.lang.NullPointerException
- [21:28:19] [Server thread/INFO]: luigi2602[/91.53.83.95:59489] logged in with entity id 21 at ([world]606.5026826881716, 61.0, 540.1916015792768)
- [21:28:19] [Server thread/INFO]: luigi2602 lost connection: Internal Exception: java.io.IOException: Error while writev(...): Broken pipe
- [21:28:19] [Server thread/INFO]: luigi2602 left the game.
- [21:28:39] [Server thread/INFO]: Holag issued server command: /nickt Peter
- [21:28:43] [User Authenticator #8/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:28:44] [Netty Epoll Server IO #1/ERROR]: java.lang.NullPointerException
- [21:28:44] [Server thread/INFO]: luigi2602[/91.53.83.95:59500] logged in with entity id 22 at ([world]606.5026826881716, 61.0, 540.1916015792768)
- [21:28:44] [Server thread/INFO]: luigi2602 lost connection: Internal Exception: java.io.IOException: Error while writev(...): Broken pipe
- [21:28:44] [Server thread/INFO]: luigi2602 left the game.
- [21:28:51] [User Authenticator #9/INFO]: UUID of player luigi2602 is 05bb7bc7-2564-4fb4-bffb-c5e2e30d79a7
- [21:28:52] [Server thread/INFO]: luigi2602[/91.53.83.95:59505] logged in with entity id 23 at ([world]606.5026826881716, 61.0, 540.1916015792768)
Jofkos hat geschrieben:Welcher Spigot und ProtocolLib Versionen hast du? Vielleicht mal die Updaten. Ansonsten fällt mir nichts wirklich ein was den Fehler erzeugen könnte.
- if (args[0].equalsIgnoreCase("toggle")) {
- if(!plugin.getNickManager().isRandomNicked(p.getUniqueId())){
- plugin.getNickManager().randomNickname(p);
- plugin.getNickManager().nickPlayer(p.getName());
- return true;
- }
- public void nickPlayer(String name) {
- if (plugin.serverType.equals(ServerType.LOBBY))
- return;
- Player p = Bukkit.getPlayer(name);
-
- String nickname = getRandomNickname();
-
- nicked.put(p, nickname);
- p.setPlayerListName(nickname);
- p.setDisplayName(nickname);
-
- p.sendMessage("Message.succes");
- }
- @EventHandler
- public void onAsyncNametag(PlayerReceiveGameProfileEvent e) {
- Player p = e.getNamedPlayer();
- if (nicked.containsKey(p)) {
- e.setName("§e" + nicked.get(p));
- Skin s = new Skin(getUUID(nicked.get(p)));
- e.setTexture(s.getSkinValue(), s.getSkinSignatur());
- }
-
- }
- String uuid;
- String name;
- String value;
- String signatur;
-
- public Skin(String uuid) {
- this.uuid = uuid;
- load();
- }
-
- private void load() {
- try {
- // Get the name from SwordPVP
- URL url = new URL("https://sessionserver.mojang.com/session/minecraft/profile/" + uuid + "?unsigned=false");
- URLConnection uc = url.openConnection();
- uc.setUseCaches(false);
- uc.setDefaultUseCaches(false);
- uc.addRequestProperty("User-Agent", "Mozilla/5.0");
- uc.addRequestProperty("Cache-Control", "no-cache, no-store, must-revalidate");
- uc.addRequestProperty("Pragma", "no-cache");
-
- // Parse it
- @SuppressWarnings("resource")
- String json = new Scanner(uc.getInputStream(), "UTF-8").useDelimiter("\\A").next();
- JSONParser parser = new JSONParser();
- Object obj = parser.parse(json);
- JSONArray properties = (JSONArray) ((JSONObject) obj).get("properties");
- for (int i = 0; i < properties.size(); i++) {
- try {
- JSONObject property = (JSONObject) properties.get(i);
- String name = (String) property.get("name");
- String value = (String) property.get("value");
- String signature = property.containsKey("signature") ? (String) property.get("signature") : null;
-
- this.name = name;
- this.value = value;
- this.signatur = signature;
-
- } catch (Exception e) {
- Bukkit.getLogger().log(Level.WARNING, "Failed to apply auth property", e);
- }
- }
- } catch (Exception e) {
- ; // Failed to load skin
- }
- }
-
- public String getSkinValue() {
- return value;
- }
-
- public String getSkinName() {
- return name;
- }
-
- public String getSkinSignatur() {
- return signatur;
- }
Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste