CMI script

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

DanRub

Active Member
Jun 3, 2023
214
22
18
Yo, whatsupp i need some advice regarding cmi script, i have cmi on my server and when i script something connected with cmi, cmi just always win, like i scripted this, so players couldnt change their personal time on spawn, but anyway cmi wins and writes their message there, idk why...
Code:
on command "/ptime":
    if player have permission "cmi.command.ptime":
        if player's world is "spawn":
            send "&cYou cant change time in this world."
            cancel event
 

Attachments

  • upload_2023-6-6_22-9-40.png
    upload_2023-6-6_22-9-40.png
    326 bytes · Views: 194
Hi!
Code:
command /ptime:
    permission: cmi.command.ptime
    trigger:
        if player's world = "spawn":
            send "&cYou can't change time in this world." to player
            cancel event
 
Hi!
Code:
command /ptime:
    permission: cmi.command.ptime
    trigger:
        if player's world = "spawn":
            send "&cYou can't change time in this world." to player
            cancel event
it's overwrite cmi command and do not change player's time at all. Problem can be solved with rewriting this command in CMI plugin, or make own command implementation in Skript.