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 seriomaniak_pl 1 Opublikowano 8 marca 2021 Autor Udostępnij Opublikowano 8 marca 2021 to getPlayer() zmieni na PostPoseChangeEvent? Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293926 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ł: to getPlayer() zmieni na PostPoseChangeEvent? nie, zmień event na to Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293927 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 ru.armagidon.poseplugin.api.poses.EnumPose org.bukkit.potion.PotionEffect org.bukkit.potion.PotionEffectType on PoseChangeEvent: if PostPoseChangeEvent.getNewPose().getType() = EnumPose.LYING: PostPoseChangeEvent.getPlayer().performCommand("teammsg %event.getPlayer().getLocation()%") PostPoseChangeEvent.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 1200, 1)) ??????? Wstawiam kod w code. Notatka dodana przez Glicz Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293929 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ł: import: ru.armagidon.poseplugin.api.events.PoseChangeEvent ru.armagidon.poseplugin.api.poses.EnumPose org.bukkit.potion.PotionEffect org.bukkit.potion.PotionEffectType on PoseChangeEvent: if PostPoseChangeEvent.getNewPose().getType() = EnumPose.LYING: PostPoseChangeEvent.getPlayer().performCommand("teammsg %event.getPlayer().getLocation()%") PostPoseChangeEvent.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 1200, 1)) ??????? Nie, import: ru.armagidon.poseplugin.api.events.PostPoseChangeEvent ru.armagidon.poseplugin.api.poses.EnumPose org.bukkit.potion.PotionEffect org.bukkit.potion.PotionEffectType on PostPoseChangeEvent: if getNewPose().getType() = EnumPose.LYING: getPlayer().performCommand("teammsg %event.getPlayer().getLocation()%") getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 1200, 1)) Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293931 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 Functions cannot be used here (or there is a problem with your arguments). (nokaut.sk, line 8: if getNewPose().getType() = EnumPose.LYING:') Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293933 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ł: Functions cannot be used here (or there is a problem with your arguments). (nokaut.sk, line 8: if getNewPose().getType() = EnumPose.LYING:') import: ru.armagidon.poseplugin.api.events.PostPoseChangeEvent ru.armagidon.poseplugin.api.poses.EnumPose org.bukkit.potion.PotionEffect org.bukkit.potion.PotionEffectType on PostPoseChangeEvent: 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-293939 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 [10:36:09 WARN]: [Skript] No matching method: PosePluginPlayer#performCommand called with (teammsg <none> (String)) [10:36:09 WARN]: [Skript] No matching method: PosePluginPlayer#addPotionEffect called with (ambient potion effect of glowing of tier 2 for 1 minute (PotionEffect)) Godzinę temu, Glitchtrap napisał: import: ru.armagidon.poseplugin.api.events.PostPoseChangeEvent ru.armagidon.poseplugin.api.poses.EnumPose org.bukkit.potion.PotionEffect org.bukkit.potion.PotionEffectType on PostPoseChangeEvent: if event.getNewPose().getType() = EnumPose.LYING: event.getPlayer().performCommand("teammsg %event.getPlayer().getLocation()%") event.getPlayer().addPotionEffect(new PotionEffect(PotionEffectType.GLOWING, 1200, 1)) [11:31:37 WARN]: [Skript] No matching method: PosePluginPlayer#getLocation called without arguments [11:31:37 WARN]: [Skript] No matching method: PosePluginPlayer#performCommand called with (teammsg <none> (String)) [11:31:37 WARN]: [Skript] No matching method: PosePluginPlayer#addPotionEffect called with (ambient potion effect of glowing of tier 2 for 1 minute (PotionEffect)) Łączę posty. Notatka dodana przez Glicz Glicz 1 Cytuj Odnośnik do komentarza https://skript.pl/temat/46682-dead-player/#findComment-293943 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ą.