Custom Commands by badplayer

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
I am in no way trying to copy Njinir. I just have some ideas for fun commands of my own and to freshen his up a bit. I am using his commands as inspiration.

With the new 2040 hotfix it brought an awesome feature with it where you can have party chat events and friends chat events along with the normal player chat event.

The significance of this is that most of the commands will have to be copied over to those events for them to work when a player is in a friends or party chat.

It is a big pain if you have lots of commands like I do with the store commands, multiple teleport commands and general help commands. Trekkan has said that he may make a "all chat" command and that would be perfect. Give him a hell yeah if you think it is a good idea too.

I have added the party and friends chat events to all the necessary commands below, but I didn't do it to admin commands. If you want to add admin commands to the new chat events, then go ahead. And be aware of this when using Njinir's custom commands too.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Poop Potatos

Usage: /poop {player name}

Type: Player Public Chat

Conditionals: STARTSWITH:/poop||ALEVEL:=0

Script:
say "[00FF00]{2} is pooping potatos!! Don't forget to clean them before you eat them."
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1
give {2} foodBakedPotato 1

Notes: You have to use the give console command rather than bc-give because you want the potatos to fall on the ground. It sells the poop effect better. If you use bc-give, they will spawn in the players backpack.
You also have to have several lines of 1 potato otherwise it spawns a bag with the quantity of potatos in it.

Special thanks to Ciro and Trekkan for helping me with these as I am not the sharpest tool in the shed.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Reset A Small Area

Usage: /reset {chunk radius}

Type: Player Public Chat

Conditionals: STARTSWITH:/reset||ALEVEL:=0

Script:
bc-reset {player_pos} /r={2}
sayplayer {{player_name}} "[00FF00] You have reset the chunks."
cr {player_pos}

Notes: This is a dangerous script to use but powerful when cleaning up old bases.
It resets that particular chunk (16x16 block area) you are standing in back to day one, from bedrock to sky.
You should be flying when you use this command.
Set the chunk radius to no more than 2 or 3 or you might crash the server. Best if you do it when no one is on the server. The radius you set is that many chunks around you plus the one you are standing in. A radius of 1 means you are resetting a 3x3 chunk area. A radius of 2 means you are resetting a 5x5 chunk area. A radius of 3 means you are resetting a 7x7 chunk area and so on.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Friend Teleport

Usage: /friend {friends name}

Type: Player Public Chat, Player Party Chat, Player Friends Chat

Conditionals: STARTSWITH:/friend||ALEVEL:<900||ISFRIEND:{player_steamid},{2}

Script:
tele {player_id} {2}
sayplayer {{player_name}} "[AE00FF]Your being teleported to {2}."

Notes: This is an easy teleport to setup.
They have to be allies in game for it to work.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Hunting

Usage: /hunt

Type: Player Public Chat, Player Party Chat, Player Friends Chat

Conditionals: STARTSWITH:/hunt||COOLDOWN:18H

Script:
sayplayer {{player_name}} "[00FF00] I hope your ready. You gotta be quick! You can only use this once a day."
.RANDOMNUMBER: 82,85
se {player_id} {random_number}
.RANDOMNUMBER: 82,85
se {player_id} {random_number}

Notes: This makes hunting random and you always get 2 animals.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
This is a precursor to some of the commands that will be coming up later.

Name: New Player Change Chat Color and Admin Status

Usage: Automatic

Type: Player New Connected

Conditionals: None

Script:
bc-chatcolor {player_name} FFFF00 false
admin add {player_id} 800

Notes: This command sets the chat name color to yellow (you can change the hex color to whatever you want) and adds the admin status to 800.
Now, in all the teleport commands you will have to add the ||ALEVEL:<900 condition to the conditionals box. This will allow you to "turn off" teleports for badplayers. (see what I did there) This will come in handy for the Teleports Remove command and the jail commands coming up.

Admin level 800 will allow players to use teleports.
Admin level 1000 will not allow players to use teleports.

If you need to manually set a player to level 800, you can do it easily in RAT.
In the players tab, right click the players name and choose admins>add
Change the level to 800 and click save That's it. You can verify your work in the permissions tab.
Now do that to all the players and let RAT take it from there.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Teleports Remove

Usage: /remove {player name}

Type: Player Public Chat

Conditionals: STARTSWITH:/remove||ALEVEL:=0

Script:
admin add {2} 1000
sayplayer {{player_name}} "[00FF00] {2}'s teleports have been removed."
sayplayer {2} "[00FF00] Your teleports have been removed for breaking the rules."

Notes: I have often thought about being able to remove a players teleport privileges. Now it is possible. This one is self explanatory.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Teleports Reinstate

Usage: /reinstate {player name}

Type: Player Public Chat

Conditionals: STARTSWITH:/reinstate||ALEVEL:=0

Script:
admin add {2} 800
sayplayer {{player_name}} "[00FF00] {2}'s teleports have been reinstated."
sayplayer {2} "[00FF00] Your teleports have been reinstated."

Notes: This one is also self explanatory. Just the opposite of the one above.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Jail Arrest Player

Usage: /arrest {player name}

Type: Player Public Chat

Conditionals: STARTSWITH:/arrest||ALEVEL:=0

Script:
teleportplayer {2} {tele_jail}
admin add {2} 1000
say "[FFFF00]{2} has been sent to jail by {player_name}"
sayplayer {2} "[FFFF00]Warning! You have been arrested and your teleport powers have been removed. An admin will be in touch shortly."

Notes: To begin with, you will need to setup a jail location in the teleports/misc tab. I personally made an iron bar cage in the safehouse that is also trader protected. Just make sure the jail teleport location is in that cage and everything will be fine. With the players admin level being changed to 1000, they will not be able to teleport out and they won't be able to break out because of the trader protection. Another good option would be to make a cell in the ground somewhere that is trader protected. You could let your imagination go wild with this one. You could even use the new gallows POI to have a public execution. So many options.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Jail Release Player

Usage: /release {player name}

Type: Player Public Chat

Conditionals: STARTSWITH:/release||ALEVEL:=0

Script:
teleportplayer {2} {tele_safehouse}
admin add {2} 800
say "[FFFF00]{2} has been released from jail by {player_name}"
sayplayer {2} "[FFFF00]You are being released from jail and being telelported to the Safehouse. Your teleport powers have been restored. Remember we are watching you....."

Notes: This will release the player from jail and give them back their teleport privileges.

You have to have all players setup as admin 800 as described in post #5. Admin level 800 is a good player with teleports enabled and admin level 1000 is a badplayer and their teleports are disabled.
 
Last edited:

badplayer

New Member
JFF Member
JFF Supporter
7D2D RAT Supporter
Name: Admin Meassage to Discord

Usage: /calladmin {message}

Type: Player Public Chat, Player Party Chat, Player Friends Chat

Conditionals: STARTSWITH:/calladmin

Script:
.DSAY:[ADMIN MESSAGE]<{player_name}> {player_chat} [ADMIN MESSAGE]

Notes: Naturally, you will have to have the discord integration setup with this.
I wanted a simple way for people to get a hold of an admin. I am usually on Discord, so it is the logical choice.
I added the [ADMIN MESSAGE] to the beginning and end of the discord message so it can easily spotted and taken care of.
 
Last edited:
Top