#how to disable world edit commands
1 messages · Page 1 of 1 (latest)
...
what do you think event-commandsender is
It isn't the command
full command is the command
idk what event-commandsender is
oh
ok
it didn't work
if full command contains "//":
send "&cYou can't do this" to player
cancel event``` no errors but I can still use world edit commands
ok
so it didn't work so I debugged it and it printed nothing on command: send "&chi" to player if "%full command%" contains "//": send "&cYou can't do this" to player cancel event
nothing in the skript works
ok
I think I fixed the skript file
it just prints "hi" tho
so the condition isn't passing
why
rrl6???
But..but.. remove world edit permission on player?
huh
I don’t understand your logic 🫤🫤
why did my code unsave
like just write scripts for everything? just create extra load
Might be both
😭
On Chat Message
or I might be incorrect, I don't think I've used it ever
It will be easier
“you’ll have to rewrite” 5 lines?
It’s not 800 lines
huh
whats wrong with that
By the way, shoving everything into one file is not a very cool idea, editing and reloading is problematic, or just be smart and use comments to separate different functions
oh
When player join to server first time, he already have this group
o
And if he bought donate, and after then join to server first time…he lose donate
anyways
how I fix this
.
that wouldn't work
that is not a event value for on command:
nor would it work on on chat:
command /rules:
and on chat message is not a thing it is on chat:
Here are 2 tips for you: 1 sort your scripts into separate files or NORMALLY separate them from comments. 2. don’t create scripts for things that CAN BE DONE WITHOUT THEM
ok
sorry I got confused
its ok
I saw so many useless scripts that will create a load that players will complain about, / the rules are in some plugins in the same cmi or essentials, using luskperms or some kind of Ultra permissions you already give the player a default group, minus the line
command /jumps: cooldown: 0.1 second cooldown message: &cWait %remaining time% seconds
Why do we need a delay that in fact won’t exist?
you can edit plugin files if necessary, and command messages too
how
…
Download Plugin
Start server
then the folder will be created
and there are files in the folder
in cmi there is a ready-made rules file, you open and write there the rules that you want players to see when /rules
In essentials similar mechanics
ok
or in the config file there are lines or a separate file
I can't find it
Which plugin?
gsit
clearly I understand my dialogue is one-sided, I write and you don’t even understand what’s happening
So what
wdym?
Are you kidding me right now or really don’t understand anything?
I clearly explained to you how to relieve the load and remove from the script what exists on its own, and in the end you write me the name of the plugin to sit down
oh
it's like: I ask blue or yellow? and you answer me “square”
oh
I ask cmi or essentials? You: gsit
I dont have cmi
you don't use a server management plugin at all?
Cool, you're one of the smart ones
ok
that's why cmi exists
how is cmi better
functionality, customizability, optimization, capabilities, design, security, continue?
this is not for me, I’m going to sleep, I realized that I’m uselessly groping here
groping???
what does that mean
I couldn’t remember the word, I wrote it wrong, I replaced it with T9
oh
do not mind it
ok
yes?
make x = y or whatever it is
bruh
u know the problem
why u guys keep saying whatever
I gave u all the info
and that doesn't help
Your code is something like this: if red = blue: broadcast “success!”
We’ve told you exactly why it doesnt work: red and blue are clearly not the same, which is why the condition fails
that is not my code
send "&chi" to player
if "%full command%" contains "//":
send "&cYou can't do this" to player
cancel event```
ok
send "%full command%" to player
if "%full command%" contains "//":
send "&cYou can't do this" to player
cancel event```
bruh
oh
ok
so when i use world edit
its
- a slash
waht
- e
t-e
-e
- e
hyphen?
it removes a /
every time I Do a command
so like //set air is /set air
and /kill is kill
-/
- bullet point : D
mhmm
bruh
I didn't know
to broadcast the full command
u just told me to debug
if "%full command%" contains "/":
if event-player is not "AxolotlGamer2364":
send "&cYou can't do this" to player
cancel event```
also
I dont need to stringify it
Okay
👍
this broke my server every time a send a command it sends you cant do this
maybe you should rethink your solution to this problem
you are blocking every command that starts with // but not all worldedit commands start with // (see here: https://worldedit.enginehub.org/en/latest/commands/)
therefore you aren’t blocking worldedit commands at all, why don’t u just not give the player any permissions to use worldedit?
cause that would be too easy
bro this is a prime example of the XY problem https://xyproblem.info
you really shouldn’t overcomplicate this