-
Posts
1,077 -
Joined
-
Last visited
-
Days Won
13
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Everything posted by CoolProgrammer
-
[Detailed Guide] How and why to use Skript Effect Commands.
CoolProgrammer replied to CoolProgrammer's topic in Discussion
Thanks -
Hey. Welcome to yet another guide. This will explain you how and why to use skript effect commands. In-case you don't know what effect commands are, it's a skript feature which allows you to use skript syntax in-game. Still don't understand? Here is an example: As you can see here, I just executed send "Hey" to player which is skript syntax, and it works as expected. Another example: Okay... so what exactly happened here?? I set variable {noob} to player (myself), and then exploded myself with strike lightning at location of {noob}. It hurts. Enabling it on your server. Okay, so now you want to use it on your server, enable it this way: First of all, go to your server Dashboard. Then navigate to File Manager and dive in this directory: /plugins/Skript. There you can see a wild config.sk: Now punch on config.sk! Scroll down a tiny bit, and this is what you should find: You see how I've selected true? Your config.sk will show it as false. Quick now... turn it to true! You can change the "!" to whatever symbol as well. For me, I use "@", because "@" looks very cute. Note: Skript effect commands are by default is not available to server operators. This means that, if you enable it, you still won't be able to use it because you need a special permission for that, and it's "skript.effectcommands". Just give yourself this permission if you are running a permissions plugin such as GroupManager, PermissionsEX, LuckPerms, etc. Now, I know! I know! Most of you don't use a permissions plugin, and you have a plugin limit. Luckily... skript allows you to enable effect commands for operators (/op)! Once again, scroll down a tiny bit, and then look for this option: Hehe, you see it's "true" for me, but it will show as "false" for you. Quick!! Turn it to true! And... you're almost done! Well... don't forget to click Save. Go back in-game and execute "/sk reload config", or else skript won't know that you have enabled effect commands. And now you are ready to use effect commands. Pros • Saves time. • Quickly read, write or delete variables. • Testing and debugging, very much simple! • Gives you more root control over your server. (Beware though, if you enabled this for operators, it can be a dangerous move if someone gets operator access) • Execute almost any skript syntax, literally anything. Cases of effect commands being helpful. Here you will see why effect commands can be helpful. Case #1: I'm a very uncool and bad skript. I came across skript-holograms, and now I give it a try like below: command /test: permission: test.test trigger: new hologram with lines white stained galass and "hello noob" and store in {test} I'm mad that it's not working! And suddenly, I realize that I made stupid keyword mistakes such as spelling "glass" as "galass", and missing out on "create" or "spawn" to make the hologram. I then go back and fix it, and it works fine now. Now from the beginning, you can obviously make out the amount of time wasted! Making a command, adding the code, saving the file, reloading the skript, raging over it, then correcting it and then finally reloading it again. But... If I used skript effect commands, This is how it would go: ! new hologram with lines white stained galass and "hello noob" and store in {test} Realizing I made some mistakes, I quickly fix it and execute it instantly: ! create new hologram with lines white stained glass and "hello noob" and store in {test} But... I want to delete all the hologram mess I just made! This is what I do to quickly delete all holograms instead of making a command to delete it: ! delete all holograms Quick as that! Cool huh? Case #2: I came across an addon called skDragon. It offers very cool cosmetic features! I decide to give it a try. This time, I manage to code the command successfully without errors as following: command /test: permission test.test trigger: # I copy pasted the sample expression from the addon's page drawArc particle "redstone", center player, target target block, id "%player%", rainbowMode true, density 50, height 2, pitchMultiplier 1, visibleRange 30 wait 5 seconds stopEffect "%player%" I decided to tweak it to look little better and customized. In this process, I edited the code atleast 10 times. The time it took me to switch in-game, execute /test, go back to the browser to make changes, save the file, come back to the game, execute /test again took me atleast 30 seconds each time. On top of that, I can't instantly see the result. Waste of time and quite stressful! But instead, if I would have used skript effect commads, this is how it could have gone: I first copy paste the expression, and execute it like this: ! drawArc particle "redstone", center player, target target block, id "%player%", rainbowMode true, density 50, height 2, pitchMultiplier 1, visibleRange 30 Oh? Then I see that I want to play with the visibleRange. I then proceed to execute these commands: ! stopEffect "%player%" ! drawArc particle "redstone", center player, target target block, id "%player%", rainbowMode true, density 50, height 2, pitchMultiplier 1, visibleRange 69 Easy, right? Honestly... You may/may not have understood the importance of effect commands, especially with my crap English, but I promise, you will find this very helpful when you start using effect commands, especially when you are dealing with a new add-on or debugging quite annoying bugs in your skript like this! Thank you so much for reading, take care.
-
Hey thanks for clicking this thread. I'm CoolProgrammer, and I've been struggling a lot to find professional, good and creative builder for my minehut server for a long time now. The type of build and map I need are a little different (but completely easier than normal spawn builds). If you really want to help me out, we can discuss further information on discord via dms. This is my discord id: CoolProgrammer#1920. Also, I regretfully say that I can't pay for the first map you make, but I promise to pay you for future builds you make if I'm satisfyied with what you made for the first season of this server. Here is what I can offer you: • Role: A discord role and in-game rank, Builder. • In-game: Perks of top rank and store credit (Buycraft/CraftingStore). • Help for Help: Help you out with any Skripting or Development in return. • Almost anything else you demand. It would be great if you could show me your portfolio if you have one, just to make things faster and easier. If not, it's completely fine. Once again, if you are willing to help me, it would mean a lot! Just reply here or dm on discord if you are willing to help me out. Thank you so much for reading and have a wonderful day!
-
VIP - 7 minutes [No-Formatting] [Colors] [Non-Clickable] PRO - 5 minutes [Formatting] [Colors] [Non-Clickable] LEGEND - 3 minutes [Formatting] [Colors] [Clickable] PATRON - 1 minute [Formatting] [Colors] [Clickable]
- 1 reply
-
- 5
-
-
-
commant!
-
Some improvements are possible but, who cares?! Good one! Love it
-
hi
-
Was it this hacker?! hDOfuOx.mp4
-
nice to meet u
-
Lets make a song / rap about minehut. 1 line at a time...
CoolProgrammer replied to Reassembly's topic in Off Topic
And I saw ugly people, advertising servers in chat; -
FINALLY! codnitionla commadns LEZY AEDMIN
-
Where exactly does it show "This feature is currently disabled."? Also use this link for help: https://www.spigotmc.org/resources/cratesplus-free-crates-plugin-1-8-1-16-4.5018
-
Assuming you don't have any plugins or skript knowledge, the easiest and simplest way will be to use EssentialsX. Install a plugin called EssentialsX. Reboot your server, and navigate to this path: /plugins/Essentials/ and open config.yml. Now look for the following option in the configuration As you can see, I've highlighted false. Change the false to true. Click on Save and return to your game. Execute this command: /ess reload After that, you should be able to enchant your items to whatever level you want. Of-course there any a tonne of different ways to do this. Some with Skript, some with other plugins, etc.
-
Is it possible to download all server files from Minehut?
CoolProgrammer replied to ThadeusOfNaz's question in Help
You can't download all files, but of-course you can download worlds, and manually download plugin configurations, skripts, and stuff like that. Files like ops.json, whitelist.json and other server related files won't matter. Shouldn't take too much effort if you just have a small SMP or something like that. Use /dl to download the worlds. The main world is the world which contains all player data such as advancements, inventories, stuff like that. You can find your main world in the Settings tab of server. Then find YouTube tutorials on how you can purchase and setup a server with paper. Then stop your server, delete the existing world folders and replace those with your minehut world folders. -
You giving away some NullPointerExceptions? Pls stop making me emotional.
-
[Plugin Request] SpigotMC - ConditionalCommands
CoolProgrammer replied to CoolProgrammer's topic in Addons
Hey, any update? -
Looking at Vivecraft, it's a mod. Do you have the mod installed?
-
New Minehut update (in couple of months) They claim that custom plugins is going to be a thing. If it's not, pls don't blame me.
-
Are you using CoreProtect? Also send logs, just as Tresre said.
-
weolkum new heplers cognratz
-
I respect your decision. Take care and good luck. Have a great time ahead.
-
lol imagine asking to fix something in off-topic
-
No problem, anytime.
-
Just go to File Manager, and then open bukkit.yml. In there, you can find the following options: Edit them to your liking, and then reboot your server.
-
[Plugin Request] SpigotMC - ConditionalCommands
CoolProgrammer replied to CoolProgrammer's topic in Addons
I know right it's a great plugin. Update: Also tested this on various other versions, and works fine. I also tested this on older Paper 1.16.4 builds, and the plugin works fine. Should continue to work fine without breaking because the plugin probably only relies on simple Commands and Events that don't change code-wise when the API is updated (mostly). So when will this plugin be added?
