Forums - Open Redstone Engineers
FunCommands - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Programming (https://forum.openredstone.org/forum-8.html)
+--- Thread: FunCommands (/thread-5814.html)



FunCommands - Chibill - 02-16-2015

Okay. So you know our FunCommands like /derp and /huzza. Which are currently built into OREUtils well now I introduce you to FunCommands the java plugin replacement for it.

Extract it into the plugin folder after removing all older versions first. THE ONLY FILE YOU SHOULD EVER TOUCH IS Derp.txt

https://www.dropbox.com/s/xsiu76xkbqmc56j/FunCommands%201.3.4.jar?dl=0
Change Log
Version 1.0.0
 -Added /derp, /derps, /fun, /funs.
Version 1.1.0
 -Removed /fun
 -Added in Dynamic Command Register
Version 1.1.1
 -Fix Permissions on all Commands that are Dynamically Registered.
Version 1.1.2
 -Added /foodfight and /slap there permissions is the same as /funs and all fun commands
Version 1.3.0
-Added /add with permission FunCommands.fun.add
-Added /remove with permission FunCommands.fun.remove
-Added /approve and /aprove-all with permission FunCommands.fun.approve
-Added /deny and /deny-all with permission FunCommands.fun.deny
-Change storage of commands to .json.
Version 1.3.1
-Fixed my misspelling within the Commands.json.
Version 1.3.2
-Fixed two commands that always returned there was usage. Even when right.
Version 1.3.4
-Made it so if in Survival or Adventure mode /foodfight does not give you food.

Comments are great if you have any..

How to write new commands:

Okay to right new commands ingame you need to run /add

with a arguments in the following format.
{"Command": "the_command","Output": "Anything","Description": "A Description"}

To get more functions use the following:
<c-COLOUR> - Inserts color code ALL COLOR CODES MUST BE IN THE RIGHT FORM!
<n>        - Inserts the sender's name
<a-INT>    - Inserts arg<INT> Only works for arg 0 and arg 1
<t>        - Send only to the sender
<r>        - Run as a command executed by the sender
<s>        - Run as a command executed by console-Only people with a upper permission can do this.

in regartes to <r> and <s> everything after them are used as the command. Anything before them are used as normal.


A good way to make sure the JSON is okay is here.
https://www.jsoneditoronline.org


RE: FunCommands - Nickster258 - 02-16-2015

Sweeeeeeeeeeeet!


RE: FunCommands - Chibill - 02-16-2015

Going to be adding the few commands I missed that were hard coded in OREUtils tomorrow. Also I will be fixing most of my color problems in the Commands.txt


RE: FunCommands - Apuly - 02-16-2015

Perhaps add a command to add commands, if you're looking into actually publishing this on the bukkit thing.


RE: FunCommands - Nickster258 - 02-16-2015

(02-16-2015, 11:02 AM)paulydboy Wrote: Perhaps add a command to add commands, if you're looking into actually publishing this on the bukkit thing.

:O


RE: FunCommands - Chibill - 02-16-2015

Well I was going to add that but I don't want to publish it to bukkit till it gets it self really because of how it works.


RE: FunCommands - PabloDons - 02-16-2015

make it so that members can make commands and then see what happens


RE: FunCommands - Chibill - 02-16-2015

Okay I can try that but I have to make sure they can't create a command with <s> in it as they could run any command as the console then.....


RE: FunCommands - PabloDons - 02-16-2015

if string_contains($theinput, "<s>"): err(0); die();
or however it is in java


RE: FunCommands - Chibill - 02-16-2015

Pablo I will work on that later today for you. I also just implemented the food fight and slap commands.


RE: FunCommands - Phase - 02-17-2015

Le GitHub?


RE: FunCommands - Chibill - 02-17-2015

I have to still. Slabs is on github but already.


RE: FunCommands - Nickster258 - 02-17-2015

This is some awesome work, chibill!


RE: FunCommands - greatgamer34 - 02-21-2015

I think the command to make new command(that are accessible to everyone) should be a staff/mod things lol. I could see it now... /dick ... xD


RE: FunCommands - Chibill - 02-21-2015

I have the commands having its own permission and I added a remove command too.


RE: FunCommands - Nickster258 - 02-21-2015

(02-21-2015, 02:19 AM)Chibill Wrote: I have the commands having its own permission and I added a remove command too.

If the remove command is only givens staff, I am fine.

Also, if people could write the commands that is cool but every time the staff log on they can review the command before it being usable.


RE: FunCommands - Chibill - 02-21-2015

I can try to set that up.. I don't like the adding of commands dynamically any ways... It makes the Commands.txt ugly.. Like very Ugly... And also when you remove a command it actually unregisters all of the commands then reregisters them and that removed command is still usable but it does nothing so yeah.. I have it implemented but I am not happy with it.


RE: FunCommands - Chibill - 02-21-2015

I am changing the format of the Commands.text to make adding and removing nicer.


RE: FunCommands - Nickster258 - 02-21-2015

(02-21-2015, 07:28 PM)Chibill Wrote: I am changing the format of the Commands.text to make adding and removing nicer.

Whatever works!


RE: FunCommands - Chibill - 02-21-2015

Making it use .json it reads in better and I can make it look nice at the same time. Also I just figured out The description part in the commamd.txt is only used when I read the fun commands out. I am going to also rewrite how I phrase the commands Output as right now its not so good....

So yeah this is one of my major changes.


RE: FunCommands - Chibill - 02-22-2015

Okay its all converted to .json but the Derps.txt now to actually make addcommand and removecommand work like you want it.

Will also have a aprovecommand command..


RE: FunCommands - Chibill - 02-23-2015

You guys got an idea for the actually commands that would add and remove and approve the commands.


RE: FunCommands - Chibill - 02-23-2015

Almost done need the names of the commands as I am not good at making names!


RE: FunCommands - Chibill - 02-23-2015

Putting out an update tomorrow. As I got it all working. Going to do colorization first but.

Also after this show should not touch and files in the FhnCommands folder but Deeps.txt


RE: FunCommands - Nickster258 - 02-23-2015

This is getting better and better!


RE: FunCommands - Chibill - 02-24-2015

Updated!


RE: FunCommands - Chibill - 02-26-2015

Added the new command TUT and a small update to fix some misspelling in the command reading system... So you don't have to use discription to mine the description.


RE: FunCommands - PabloDons - 04-09-2015

so I am having alot of trouble making a command... the thing doesn't want to add it. gives me an internal error:
Code:
{"mo":"mobile","<c-3>[<c-b>Mobile<c-3>]<c-e><n><c-f>: <a-0>":"<r>","mobile":"mobile"}



RE: FunCommands - Xray_Doc - 04-09-2015

add /lag


RE: FunCommands - Chibill - 04-09-2015

its there but is not runnnig because another plugin is catching it before FunCommands can.


RE: FunCommands - PabloDons - 04-10-2015

(04-09-2015, 06:38 PM)Chibill Wrote: another plugin is catching it before FunCommands can.

change the command then, lol. make it /addcommand


RE: FunCommands - Chibill - 04-10-2015

Add works (well something is wrong with it internally. Not sure what.) Its /lag that is the problem which can be fixed simply.


RE: FunCommands - Nickster258 - 04-11-2015

World edit has "/remove" and it conflicts with FunCommands. Could "/remove" be renamed to something else? I cannot remove things using worldedit at the moment.


RE: FunCommands - Chibill - 04-11-2015

Sure jphow about /remove command ?


RE: FunCommands - Chibill - 04-11-2015

But it might have to wait till Thursday. Going to been gone from Sunday 3 till wendsday night.