Solved Not Same Message

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


New Member
Aug 26, 2019
Category: Chat

Suggested name: NotSameMessage

Spigot/Skript Version: Skript 2.2-dev36 - Spigot 1.8.8

What I want:

I would like a system that allows a player not to send the same message twice, so if he sends a message like "Hello my name is Skript" he won't be able to send the same message.

Ideas for commands:

No command

Ideas for permissions:

To bypass this, use permission "skript.nsm

When I'd like it by:
Possibly today.
on join:
    set {messages::%player%} to ""

on chat:
    if {messages::%player%} = message:
        if player does not have permission "skript.nsm":
            cancel event
            send "You can not send the same message twice"
        set {messages::%player%} to message
[doublepost=1566860673,1566810333][/doublepost]I forgot to add the permission in, I edited it with the permission
  • Like
Reactions: malia