Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

SkinsFetcher - przywróć i zmieniaj skórki graczy


Riveilli

Rekomendowane odpowiedzi

Opublikowano

[tutaj kiedyś pojawi się jakieś logo]

Aktualna wersja wtyczki: 0.1


Jak wiadomo silniki z online-mode ustawiony na false od wersji 1.8 wzwyż, nie pobierają skórek dla graczy.
Przedstawiam wam plugin, który wykona tę czynność samoistnie przy wejściu gracza na serwer i zapewni możliwość zmiany skórki w locie.

Komendy:

  • /skinsfetcher help - pokazuje stronę pomocy.
  • /skinsfetcher set <player> <skin owner> - zmienia skórkę gracza.
  • /skinsfetcher update <player> - aktualizuje skórkę gracza.
  • /skinsfetcher drop <player> - usuwa skórkę gracza.

Uprawnienia:

  • skinsfetcher.commands - uprawnienie umożliwiające używanie komend.

Do zrobienia:

  • pobieranie skórek poza wątkiem serwera
  • poprawienie obsługi błędów
  • zaimplementowanie obsługi własnych wiadomości
  • ?

Pobierz:



Wtyczka na obecną chwilę jest kompatybilna jedynie ze Spigot'em 1.9.

Opublikowano

Szkoda, że zaciemniłeś kod, mimo że jest słabo zaciemniony, to i tak zniechęca do czytania :<

A chciałem wypisać błędziki o ile są :D

Liczę więc w ciemno, że plugin jest dobry! :>

Opublikowano

ten plugin serio działa lol, na pewno użyję go na swoim serwerze kiedy będę go robić

713582.gif         Liczba postów zebranych na koncie:
                                       25 50 75  100 125 150 175 200 250 500 1000 2000+
   
                                                                                                                                 [Jeżeli pomogłem daj +]
                                                                  
                                                       [nic na tym nie tracisz]
                                                                                          
                                                                                                                
                                                               
Opublikowano

Może jakieś api dodasz? :D

Wystarczy stworzyć nowy obiekt klasy SkinManager, który pozwala na zarządzanie skinem gracza użytego w konstruktorze.

Opublikowano

Panie panie, brak klasy cuś wykrywa! :c

 

Loading libraries, please wait...
[19:10:39 INFO]: Starting minecraft server version 1.9.2
[19:10:39 INFO]: Loading properties
[19:10:39 INFO]: Default game type: SURVIVAL
[19:10:39 INFO]: This server is running Paper version git-Paper-647 (MC: 1.9.2) (Implementing API version 1.9.2-R0.1-SNAPSHOT)
[19:10:39 INFO]: Debug logging is disabled
[19:10:39 INFO]: Server Ping Player Sample Count: 12
[19:10:39 INFO]: Using 4 threads for Netty based IO
[19:10:39 INFO]: Spigot Timings: true - Verbose: true - Interval: 5m - Length: 60m
[19:10:39 INFO]: Generating keypair
[19:10:39 INFO]: Starting Minecraft server on *:25565
[19:10:39 INFO]: Using default channel type
[19:10:39 INFO]: Set PluginClassLoader as parallel capable
[19:10:39 INFO]: [qEssentialsReloaded] Loading qEssentialsReloaded v1.0.0R
[19:10:39 INFO]: [qEssentialsReloaded] [Preload] Instantiating java plugin...
[19:10:39 INFO]: [qEssentialsReloaded] [Preload] Creating variables, connecting to SQLite and creating tables...
[19:10:39 INFO]: [qEssentialsReloaded] [Preload] Instantiating object implementations...
[19:10:39 INFO]: [SkinsFetcher] Loading SkinsFetcher v0.1
[19:10:39 INFO]: Server permissions file permissions.yml is empty, ignoring it
[19:10:39 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
[19:10:39 WARN]: The server will make no attempt to authenticate usernames. Beware.
[19:10:39 WARN]: While this makes the game possible to play without internet access, it also opens up the ability for hackers to connect with any username they choose.
[19:10:39 WARN]: To change this, set "online-mode" to "true" in the server.properties file.
[19:10:39 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
[19:10:39 INFO]: Preparing level "world"
[19:10:39 INFO]: -------- World Settings For [world] --------
[19:10:39 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[19:10:39 INFO]: Item Merge Radius: 2.5
[19:10:39 INFO]: Item Despawn Rate: 6000
[19:10:39 INFO]: Arrow Despawn Rate: 1200
[19:10:39 INFO]: View Distance: 10
[19:10:39 INFO]: Max Entity Collisions: 8
[19:10:39 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
[19:10:39 INFO]: Random Lighting Updates: false
[19:10:39 INFO]: Experience Merge Radius: 3.0
[19:10:39 INFO]: Zombie Aggressive Towards Villager: true
[19:10:39 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[19:10:39 INFO]: Max TNT Explosions: 100
[19:10:39 INFO]: Mob Spawn Range: 4
[19:10:39 INFO]: Cactus Growth Modifier: 100%
[19:10:39 INFO]: Cane Growth Modifier: 100%
[19:10:39 INFO]: Melon Growth Modifier: 100%
[19:10:39 INFO]: Mushroom Growth Modifier: 100%
[19:10:39 INFO]: Pumpkin Growth Modifier: 100%
[19:10:39 INFO]: Sapling Growth Modifier: 100%
[19:10:39 INFO]: Wheat Growth Modifier: 100%
[19:10:39 INFO]: NetherWart Growth Modifier: 100%
[19:10:39 INFO]: Structure Info Saving: true
[19:10:39 INFO]: Nerfing mobs spawned from spawners: false
[19:10:39 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[19:10:39 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[19:10:39 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[19:10:39 INFO]: -------- World Settings For [world] --------
[19:10:39 INFO]: Keep Spawn Loaded Range: 8
[19:10:39 INFO]: Grass Spread Tick Rate: 1
[19:10:39 INFO]: Fix TNT cannons: false
[19:10:39 INFO]: Non Player Arrow Despawn Rate: 1200
[19:10:39 INFO]: Top of the nether void damage: false
[19:10:39 INFO]: Squids will spawn between Y: 45.0 and Y: 63.0
[19:10:39 INFO]: Optimize explosions: false
[19:10:39 INFO]: Water over lava flow speed: 5
[19:10:39 INFO]: Lighting Queue enabled: false
[19:10:39 INFO]: Baby zombies will move at the speed of 0.5
[19:10:39 INFO]: Fishing time ranges are between 100 and 900 ticks
[19:10:39 INFO]: Living Entity Despawn Ranges:  Soft: 32 Hard: 128
[19:10:39 INFO]: Max height for cactus growth 3. Max height for reed growth 3
[19:10:39 INFO]: End credits disabled: false
[19:10:39 INFO]: Keep spawn chunk loaded: true
[19:10:39 INFO]: -------- World Settings For [world_nether] --------
[19:10:39 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[19:10:39 INFO]: Item Merge Radius: 2.5
[19:10:39 INFO]: Item Despawn Rate: 6000
[19:10:39 INFO]: Arrow Despawn Rate: 1200
[19:10:39 INFO]: View Distance: 10
[19:10:39 INFO]: Max Entity Collisions: 8
[19:10:39 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
[19:10:39 INFO]: Random Lighting Updates: false
[19:10:39 INFO]: Experience Merge Radius: 3.0
[19:10:39 INFO]: Zombie Aggressive Towards Villager: true
[19:10:39 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[19:10:39 INFO]: Max TNT Explosions: 100
[19:10:39 INFO]: Mob Spawn Range: 4
[19:10:39 INFO]: Cactus Growth Modifier: 100%
[19:10:39 INFO]: Cane Growth Modifier: 100%
[19:10:39 INFO]: Melon Growth Modifier: 100%
[19:10:39 INFO]: Mushroom Growth Modifier: 100%
[19:10:39 INFO]: Pumpkin Growth Modifier: 100%
[19:10:39 INFO]: Sapling Growth Modifier: 100%
[19:10:39 INFO]: Wheat Growth Modifier: 100%
[19:10:39 INFO]: NetherWart Growth Modifier: 100%
[19:10:39 INFO]: Structure Info Saving: true
[19:10:39 INFO]: Nerfing mobs spawned from spawners: false
[19:10:39 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[19:10:39 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[19:10:39 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[19:10:39 INFO]: -------- World Settings For [world_nether] --------
[19:10:39 INFO]: Keep Spawn Loaded Range: 8
[19:10:39 INFO]: Grass Spread Tick Rate: 1
[19:10:39 INFO]: Fix TNT cannons: false
[19:10:39 INFO]: Non Player Arrow Despawn Rate: 1200
[19:10:39 INFO]: Top of the nether void damage: false
[19:10:39 INFO]: Squids will spawn between Y: 45.0 and Y: 63.0
[19:10:39 INFO]: Optimize explosions: false
[19:10:39 INFO]: Water over lava flow speed: 5
[19:10:39 INFO]: Lighting Queue enabled: false
[19:10:39 INFO]: Baby zombies will move at the speed of 0.5
[19:10:39 INFO]: Fishing time ranges are between 100 and 900 ticks
[19:10:39 INFO]: Living Entity Despawn Ranges:  Soft: 32 Hard: 128
[19:10:39 INFO]: Max height for cactus growth 3. Max height for reed growth 3
[19:10:39 INFO]: End credits disabled: false
[19:10:39 INFO]: Keep spawn chunk loaded: true
[19:10:39 INFO]: -------- World Settings For [world_the_end] --------
[19:10:39 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
[19:10:39 INFO]: Item Merge Radius: 2.5
[19:10:39 INFO]: Item Despawn Rate: 6000
[19:10:39 INFO]: Arrow Despawn Rate: 1200
[19:10:39 INFO]: View Distance: 10
[19:10:39 INFO]: Max Entity Collisions: 8
[19:10:39 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
[19:10:39 INFO]: Random Lighting Updates: false
[19:10:39 INFO]: Experience Merge Radius: 3.0
[19:10:39 INFO]: Zombie Aggressive Towards Villager: true
[19:10:39 INFO]: Tile Max Tick Time: 50ms Entity max Tick Time: 50ms
[19:10:39 INFO]: Max TNT Explosions: 100
[19:10:39 INFO]: Mob Spawn Range: 4
[19:10:39 INFO]: Cactus Growth Modifier: 100%
[19:10:39 INFO]: Cane Growth Modifier: 100%
[19:10:39 INFO]: Melon Growth Modifier: 100%
[19:10:39 INFO]: Mushroom Growth Modifier: 100%
[19:10:39 INFO]: Pumpkin Growth Modifier: 100%
[19:10:39 INFO]: Sapling Growth Modifier: 100%
[19:10:39 INFO]: Wheat Growth Modifier: 100%
[19:10:39 INFO]: NetherWart Growth Modifier: 100%
[19:10:39 INFO]: Structure Info Saving: true
[19:10:39 INFO]: Nerfing mobs spawned from spawners: false
[19:10:39 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
[19:10:39 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
[19:10:39 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
[19:10:39 INFO]: -------- World Settings For [world_the_end] --------
[19:10:39 INFO]: Keep Spawn Loaded Range: 8
[19:10:39 INFO]: Grass Spread Tick Rate: 1
[19:10:39 INFO]: Fix TNT cannons: false
[19:10:39 INFO]: Non Player Arrow Despawn Rate: 1200
[19:10:39 INFO]: Top of the nether void damage: false
[19:10:39 INFO]: Squids will spawn between Y: 45.0 and Y: 63.0
[19:10:39 INFO]: Optimize explosions: false
[19:10:39 INFO]: Water over lava flow speed: 5
[19:10:39 INFO]: Lighting Queue enabled: false
[19:10:39 INFO]: Baby zombies will move at the speed of 0.5
[19:10:39 INFO]: Fishing time ranges are between 100 and 900 ticks
[19:10:39 INFO]: Living Entity Despawn Ranges:  Soft: 32 Hard: 128
[19:10:39 INFO]: Max height for cactus growth 3. Max height for reed growth 3
[19:10:39 INFO]: End credits disabled: false
[19:10:39 INFO]: Keep spawn chunk loaded: true
[19:10:39 INFO]: Preparing start region for level 0 (Seed: -2731455485721452894)
[19:10:40 INFO]: Preparing start region for level 1 (Seed: -2731455485721452894)
[19:10:41 INFO]: Preparing start region for level 2 (Seed: -2731455485721452894)
[19:10:41 INFO]: [qEssentialsReloaded] Enabling qEssentialsReloaded v1.0.0R
[19:10:41 INFO]: [qEssentialsReloaded] Loading resources...
[19:10:41 INFO]: [qEssentialsReloaded] Doing some miscellaneous work...
[19:10:41 INFO]: [qEssentialsReloaded] Generating config and message files...
[19:10:41 INFO]: [qEssentialsReloaded] Registering listeners...
[19:10:41 INFO]: [qEssentialsReloaded] Registering commands...
[19:10:41 INFO]: [qEssentialsReloaded] Preloading tab...
[19:10:41 INFO]: [qEssentialsReloaded] [Metrics] Successfully instantiated metrics!
[19:10:41 INFO]: [qEssentialsReloaded] Completed successfuly! (35ms)
[19:10:41 INFO]: [SkinsFetcher] Enabling SkinsFetcher v0.1
[19:10:41 ERROR]: Error occurred while enabling SkinsFetcher v0.1 (Is it up to date?)
java.lang.NoSuchMethodError: org.mcstats.Metrics.a()Z
        at me.riveilli.skinsfetcher.Main.onEnable(Main.java:49) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) ~[paperspigot.jar:git-Paper-647]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:319) [paperspigot.jar:git-Paper-647]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:407) [paperspigot.jar:git-Paper-647]
        at org.bukkit.craftbukkit.v1_9_R1.CraftServer.loadPlugin(CraftServer.java:357) [paperspigot.jar:git-Paper-647]
        at org.bukkit.craftbukkit.v1_9_R1.CraftServer.enablePlugins(CraftServer.java:317) [paperspigot.jar:git-Paper-647]
        at net.minecraft.server.v1_9_R1.MinecraftServer.t(MinecraftServer.java:412) [paperspigot.jar:git-Paper-647]
        at net.minecraft.server.v1_9_R1.MinecraftServer.l(MinecraftServer.java:377) [paperspigot.jar:git-Paper-647]
        at net.minecraft.server.v1_9_R1.MinecraftServer.a(MinecraftServer.java:331) [paperspigot.jar:git-Paper-647]
        at net.minecraft.server.v1_9_R1.DedicatedServer.init(DedicatedServer.java:273) [paperspigot.jar:git-Paper-647]
        at net.minecraft.server.v1_9_R1.MinecraftServer.run(MinecraftServer.java:571) [paperspigot.jar:git-Paper-647]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_51]
[19:10:41 INFO]: [SkinsFetcher] Disabling SkinsFetcher v0.1
[19:10:41 INFO]: Done (1,743s)! For help, type "help" or "?"
[19:10:41 INFO]: Timings Reset 

 

 

Moja oficjalna strona! :)

http://socketbyte.pl/ 

Opublikowano

@AdamGrzegorz, może jakaś felerna wersja silnika lub błąd przy pobieraniu. Zarówno na najnowszej wersji Spigota jak i PaperSpigota wtyczka działa prawidłowo.
Sprawdź checksumę jarki i zaktualizuj silnik do możliwe najbardziej aktualnej wersji.

 

 

MD5: BA751A7F7C215BD4753F340158773319
SHA-1: 2D8F4DA2817EBD338D1FA89753B49B6250402F86

 

 
http://hastebin.com/omobabapoc
http://hastebin.com/atureyoqah

Opublikowano

@AdamGrzegorz, może jakaś felerna wersja silnika lub błąd przy pobieraniu. Zarówno na najnowszej wersji Spigota jak i PaperSpigota wtyczka działa prawidłowo.

Sprawdź checksumę jarki i zaktualizuj silnik do możliwe najbardziej aktualnej wersji.

 

 

MD5: BA751A7F7C215BD4753F340158773319

SHA-1: 2D8F4DA2817EBD338D1FA89753B49B6250402F86

 

 

http://hastebin.com/omobabapoc

http://hastebin.com/atureyoqah

Checksuma zgodna, silnik zmieniałem chyba z 5 razy i nie działczy.

 

Dziwne :/

Moja oficjalna strona! :)

http://socketbyte.pl/ 

Opublikowano

@AdamGrzegorz, próbowałeś odpalić na samym czystym silniku bez innych pluginów?

ayy, coś czuje że paczki mcstats kolidują ze sobą. W moim pluginie są, i w twoim. 

 

W sumie tak nie powinno się zdarzyć, popatrzę jeszcze czy coś da się zrobić. MCStats musiał przewidzieć że ktoś będzie miał kilka pluginów z mcstats.

 

­

Moja oficjalna strona! :)

http://socketbyte.pl/ 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...