seriomaniak_pl 1 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 Witam. U siebie na serwerze mam plugin nokaut. Potrzebuję skryptu który by wykrywał że ktoś jest powalony i na /teammsg koordy wysyłał oraz miał effect glow. Czy dało by się takie coś zrobić? Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 6 minut temu, seriomaniak_pl napisał: Witam. U siebie na serwerze mam plugin nokaut. Potrzebuję skryptu który by wykrywał że ktoś jest powalony i na /teammsg koordy wysyłał oraz miał effect glow. Czy dało by się takie coś zrobić? Tak, da się przy pomocy skript-reflecta (o ile plugin ma api). Podaj nazwę tego pluginu. Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293900 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 Nie jestem na tyle obeznany ale wysyłam listę wszystkich wgranych pluginów AdvancedBan*, AntiCheatReloaded, AutoMessage, AutoRestart*, CoreProtect, CraftserveRadiation, DrugFun, Essentials, EssentialsChat, EssentialsProtect, EssentialsSpawn, GCoreLegacy, Hat, HolographicDisplays, InvSee*, JoinMessage*, LifeMC, LuckPerms, Multiverse-Core, MyCommand, nokaut*, OpenInv, OpeNLogin, OreAnnouncer, PlaceholderAPI, PluginManager*, PosePlugin, PosePluginAPI, PowerRanks, ProtocolLib, SkinsRestorer, Skript, Tablist, TheNewEconomy, TimeIsMoney*, VanishNoPacket, Vault, WithdrawPlugin, WorldEdit, WorldGuard Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293901 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 2 minuty temu, seriomaniak_pl napisał: nokaut* prawdopodobnie to ten plugin, lecz no mógłbyś mi do niego podesłać link? Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293902 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 https://www.spigotmc.org/resources/nokaut-knockout.85152/ Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293903 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 8 minut temu, seriomaniak_pl napisał: https://www.spigotmc.org/resources/nokaut-knockout.85152/ import: ru.armagidon.poseplugin.api.events.PoseChangeEvent on PoseChangeEvent: send "%event.getNewPose().getType()%" Dobrze, wgraj ten skrypt na serwer i powiedz mi co Ci się wyświetli jeżeli aktywuje się nokaut. Pozwoli mi to dokończyć skrypt. Wymagany jest dodatek skript-reflect Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293907 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 can't understand this event: 'import' (nokaut.sk, line 1: import:') can't understand this event: 'on PoseChangeEvent' (nokaut.sk, line 4: on PoseChangeEvent:') Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293908 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 1 minutę temu, seriomaniak_pl napisał: can't understand this event: 'import' (nokaut.sk, line 1: import:') can't understand this event: 'on PoseChangeEvent' (nokaut.sk, line 4: on PoseChangeEvent:') eh pisałem, że musisz mieć dodatek skript-reflect 4 minuty temu, Glitchtrap napisał: Wymagany jest dodatek skript-reflect Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293909 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 [09:15:43 ERROR]: There's no player/console in an on bukkit event event (nokaut.sk, line 5: send "%event.getNewPose().getType()%"') Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293910 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 5 minut temu, seriomaniak_pl napisał: [09:15:43 ERROR]: There's no player/console in an on bukkit event event (nokaut.sk, line 5: send "%event.getNewPose().getType()%"') dodaj na koniec 'to event.getPlayer()' czyli zrób: 'send "%event.getNewPose().getType()%" to event.getPlayer()' Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293912 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to CommandSender Po powaleniu gracza Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293913 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 Teraz, seriomaniak_pl napisał: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to CommandSender Po powaleniu gracza Spróbuj zrobić coś innego w tym sendzie (np.: zrób 'send "działa" to event.getPlayer()'), gdyż no nie wiem do końca co jest przyczyną błędu Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293914 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 import: ru.armagidon.poseplugin.api.events.PoseChangeEvent on PoseChangeEvent: send "dziala" to event.getPlayer() Jesli to miało wygladać tak to [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@7fd87696 (PosePluginPlayer), which could not be converted to CommandSender Wstawiam kod w code, łączę posty. Notatka dodana przez Glicz Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293915 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 5 minut temu, seriomaniak_pl napisał: import: ru.armagidon.poseplugin.api.events.PoseChangeEvent on PoseChangeEvent: send "dziala" to event.getPlayer() Jesli to miało wygladać tak to [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@7fd87696 (PosePluginPlayer), which could not be converted to CommandSender Sprawdź to: import: ru.armagidon.poseplugin.api.events.PoseChangeEvent ru.armagidon.poseplugin.api.poses.EnumPose on PoseChangeEvent: if event.getNewPose().getType() = EnumPose.LYING: execute event.getPlayer() command "teammsg %location of event.getPlayer()%" apply glowing to the event.getPlayer() for 60 seconds Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293917 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 09:40:24 WARN]: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to Location [09:40:24 WARN]: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to CommandSender [09:40:24 WARN]: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to LivingEntity Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293918 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 7 minut temu, seriomaniak_pl napisał: 09:40:24 WARN]: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to Location [09:40:24 WARN]: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to CommandSender [09:40:24 WARN]: [Skript] method PoseChangeEvent#getPlayer called without arguments returned ru.armagidon.poseplugin.api.player.PosePluginPlayer@6a7a8ca3 (PosePluginPlayer), which could not be converted to LivingEntity import: ru.armagidon.poseplugin.api.events.PoseChangeEvent ru.armagidon.poseplugin.api.poses.EnumPose org.bukkit.potion.PotionEffect; org.bukkit.potion.PotionEffectType; on PoseChangeEvent: if event.getNewPose().getType() = EnumPose.LYING: event.getPlayer().performCommand("teammsg %event.getPlayer().getLocation()%") event.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 1200, 1)) Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293919 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 [09:57:20 WARN]: org.bukkit.potion.PotionEffect; is an invalid import statement. (nokaut.sk, line 4: org.bukkit.potion.PotionEffect;') [09:57:20 WARN]: org.bukkit.potion.PotionEffectType; is an invalid import statement. (nokaut.sk, line 5: org.bukkit.potion.PotionEffectType;') Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293920 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 Teraz, seriomaniak_pl napisał: [09:57:20 WARN]: org.bukkit.potion.PotionEffect; is an invalid import statement. (nokaut.sk, line 4: org.bukkit.potion.PotionEffect;') [09:57:20 WARN]: org.bukkit.potion.PotionEffectType; is an invalid import statement. (nokaut.sk, line 5: org.bukkit.potion.PotionEffectType;') Usuń ';' na końcu linijek 4 i 5 Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293921 Udostępnij na innych stronach Więcej opcji udostępniania...
0 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 [Skript] No matching method: PosePluginPlayer#getLocation called without arguments [09:59:35 WARN]: [Skript] No matching method: PosePluginPlayer#performCommand called with (teammsg <none> (String)) [09:59:35 WARN]: [Skript] No matching method: PosePluginPlayer#addPotionEffect called with (ambient potion effect of glowing of tier 2 for 1 minute (PotionEffect)) Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293922 Udostępnij na innych stronach Więcej opcji udostępniania...
1 xAxee 1968 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 (edytowane) 12 minut temu, seriomaniak_pl napisał: [Skript] No matching method: PosePluginPlayer#getLocation called without arguments [09:59:35 WARN]: [Skript] No matching method: PosePluginPlayer#performCommand called with (teammsg <none> (String)) [09:59:35 WARN]: [Skript] No matching method: PosePluginPlayer#addPotionEffect called with (ambient potion effect of glowing of tier 2 for 1 minute (PotionEffect)) event PoseChangeEvent nie ma metody getPlayer() @Glitchtrap Edytowane 8 marca 2021 przez xAxee Misio12320 1 Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293924 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Glicz 246 Opublikowano 8 marca 2021 Udostępnij Opublikowano 8 marca 2021 1 minutę temu, xAxee napisał: event PoseChangeEvent nie ma metody getPlayer() @Glitchtrap hmmm, no dobra więc niech zmieni na PostPoseChangeEvent Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293925 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
seriomaniak_pl 1
Witam. U siebie na serwerze mam plugin nokaut. Potrzebuję skryptu który by wykrywał że ktoś jest powalony i na /teammsg koordy wysyłał oraz miał effect glow. Czy dało by się takie coś zrobić?
Odnośnik do komentarza
https://skript.pl/temat/46682-dead-player/Udostępnij na innych stronach
27 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.