Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Command for plots doesn't work!

Open sriskels opened this issue 9 years ago • 16 comments

I click enter by mistake -_-

Commands for plots doesn't work!

I have code: https://pastebin.com/rW2dhmfQ but for player without op this don't work

sriskels avatar Apr 24 '17 12:04 sriskels

there is mistake (add worldguard.* and remove worldguard.define) but not it.

sriskels avatar Apr 24 '17 15:04 sriskels

So what exactly isn't working? What do you mean by "commands for plots"?

TheBentoBox avatar Apr 24 '17 17:04 TheBentoBox

Em, everything, any of command is not executed.

(sory for my english, I'm from Poland)

sriskels avatar Apr 24 '17 17:04 sriskels

Can we see the rest of the code? And what's your server/Skript version?

TheBentoBox avatar Apr 24 '17 17:04 TheBentoBox

Yes, but I write in for polish server, because you can not understand a lot of messages.

I want make plots for VIP's and normal players. https://pastebin.com/Yu5TknA4

sriskels avatar Apr 24 '17 17:04 sriskels

I'm using the newest version of Skript and spigot-1.11.2-R0.1-SNAPSHOT

sriskels avatar Apr 24 '17 17:04 sriskels

Do you have WorldGuard or any of the supported region plugins installed?

Skript's regions do not include plotsquared or plotme. You will have to use SharpSk or SkAction if you would like to use PlotSquared syntax.

To anyone who doesn't understand what they mean: Basically they want the if player cannot build at event-location condition to work with a plot plugin, they think it works with plotsquared or plotme. Which it doesn't. The region syntax within Skript are designed for PresiousStones, WorldGuard and GriefPrevention.

TheLimeGlass avatar Apr 25 '17 06:04 TheLimeGlass

And Residence! But still, that is only a few plugins supported.

bensku avatar Apr 25 '17 09:04 bensku

Yes, I have World Guard.

sriskels avatar Apr 25 '17 17:04 sriskels

Are your plots also WorldGuard regions?

bensku avatar Apr 27 '17 13:04 bensku

You see code >.< execute player command "rg define %player%-%{dzialki::ilosc::%player%}% %player%"

sriskels avatar Apr 28 '17 14:04 sriskels

Oops. Anyway, what does not work? Are regions not created at all?

bensku avatar Apr 28 '17 15:04 bensku

Everything, when i write /dzialka stworz (command for create plot) the chat is like that: send "&8[&6Działki&8] &2Działka została utworzona pomyślnie!" (the plot has been created successfully, but not!) ONLY!, and worldguard region doesn't exists.

sriskels avatar Apr 28 '17 16:04 sriskels

Try make player execute <command>

bensku avatar Apr 29 '17 07:04 bensku

Nope, it's not it, i think it caused by the amount of commands with delay only 1-2 tick, but i don't want the creating plot taking large time. This working: if arg 1 is not "info" or "stworz" or "dodaj" or "usun" or "flagi" or "flaga" or "wyrzuc": make player execute "dzialka" But the creating plot doesn't work, only message that should be message of create plot with success

sriskels avatar Apr 30 '17 08:04 sriskels

You have a race condition with permissions. They are probably not yet added before you start executing commands as player. In any case, granting player temporary permissions for WE/WG this is a security issue. Don't do it.

Closing, not Skript problem.

bensku avatar May 01 '17 10:05 bensku