1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Death

Discussion in 'Skript' started by Rinaldi00, Feb 20, 2017.

Thread Status:
Not open for further replies.
  1. Rinaldi00

    Rinaldi00 Member

    Joined:
    Feb 16, 2017
    Messages:
    11
    Likes Received:
    0
    Pls give me code for:
    on death don't see screen of death and teleport player on dead-location, add fly for 5 seconds, add invisibility for 5 seconds, add immunity for 5 seconds, and summon a title named "You spawn in 5 seconds" wait 1 seconds. "You spawn in 4 seconds" wait 1 seconds. "You spawn in 3 seconds" wait 1 seconds. "You spawn in 2 seconds" wait 1 seconds. "You spawn in 1 second" wait 1 second. Message you have spawned. teleport the player to spawn, remove fly, remove invisibility, remove immunity. If you can not do that, can you find me something?
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Ill code it for you, gimme second
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    maybe like this? im still beginner, sorry if get error.
    i don't know how to immunity for 5 sec

    Note: Must have RandomSK Addon


    Code (Skript):
    1. On Death:
    2.     wait 1 tick
    3.     set {death.%player%} to location of the player
    4.     force respawn victim
    5.     teleport player to {death.%player%}
    6.     set {respawn.%player%} to true
    7.     apply Invisibility to player for 5 seconds
    8.     send "&aYou will spawn in 5 sec"
    9.     wait 1 seconds
    10.     send "&aYou will spawn in 4 sec"
    11.     wait 1 seconds
    12.     send "&aYou will spawn in 3 sec"
    13.     wait 1 seconds
    14.     send "&aYou will spawn in 2 sec"
    15.     wait 1 seconds
    16.     send "&aYou will spawn in 1 sec"
    17.     wait 1 seconds
    18.     set {respawn.%player%} to false
    19.     teleport player to spawn
    20.     send "&aYou have been Spawned"
    21.    
    22. On Any Move:
    23.     if {respawn.%player%} is set:
    24.         cancel event
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    Code (Skript):
    1. On Death:
    2.     wait 1 tick
    3.     set {death.%player%} to location of the player
    4.     force respawn victim
    5.     teleport player to {death.%player%}
    6.     set {respawn.%player%} to true
    7.     apply Invisibility to player for 5 seconds
    8.     send "&aYou will spawn in 5 sec"
    9.     wait 1 seconds
    10.     send "&aYou will spawn in 4 sec"
    11.     wait 1 seconds
    12.     send "&aYou will spawn in 3 sec"
    13.     wait 1 seconds
    14.     send "&aYou will spawn in 2 sec"
    15.     wait 1 seconds
    16.     send "&aYou will spawn in 1 sec"
    17.     wait 1 seconds
    18.     set {respawn.%player%} to false
    19.     teleport player to spawn
    20.     send "&aYou have been Spawned"
    21.  
    22. On Any Move:
    23.     if {respawn.%player%} is set:
    24.         cancel event
    I have modified the plugins, beacause this don't work
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    that code work m8 maybe u need addons :emoji_slight_smile:
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    U add me to skype? My skype name is gianlucarinaldi2000
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    sry man i no have skype ;/ and i no have social media
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    make sure, u install RandomSK.
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    220
    pls give me download, I don't found.. I have found one but is old and have problems
    --- Double Post Merged, Feb 21, 2017, Original Post Date: Feb 21, 2017 ---
    Code (Text):
    1.  
    2. hannel(TinyProtocol.java:115) [RandomSK_2_7_1.jar:?]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:69) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:732) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:442) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:418) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] [18:38:40 ERROR]: [RandomSK] Cannot inject incomming channel [id: 0x7509fc56, /213.45.92.47:53962 => /167.114.208.2:41434] java.lang.ClassCastException: com.mirre.random.utils.comphenix.TinyProtocol$PacketInterceptor cannot be cast to com.mirre.random.utils.comphenix.TinyProtocol$PacketInterceptor         at com.mirre.random.utils.comphenix.TinyProtocol.injectChannelInternal(TinyProtocol.java:356) ~[RandomSK_2_7_1.jar:?]         at com.mirre.random.utils.comphenix.TinyProtocol.access$4(TinyProtocol.java:354) ~[RandomSK_2_7_1.jar:?]         at com.mirre.random.utils.comphenix.TinyProtocol$1.initChannel(TinyProtocol.java:115) [RandomSK_2_7_1.jar:?]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:69) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.ChannelInitializer.channelRegistered(ChannelInitializer.java:71) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRegistered(AbstractChannelHandlerContext.java:158) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannelHandlerContext.fireChannelRegistered(AbstractChannelHandlerContext.java:144) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.DefaultChannelPipeline.fireChannelRegistered(DefaultChannelPipeline.java:732) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:442) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe.access$100(AbstractChannel.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:418) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:380) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:268) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52]         at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    3.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...