Jump to content

Trying to make a ban announcer


Recommended Posts

current code:

=============================================================

command /addban:
  trigger:
    add 1 to {staffbans::*}
command /removeban:
  trigger:
    remove 1 from {staffbans::*}

=============================================================

#Image:

 

2021-08-19_18_29_39.thumb.png.24000d73d87d45f40e57b8e802eba3a4.png

Link to comment
Share on other sites

2 minutes ago, nolando09 said:

current code:

=============================================================

command /addban:
  trigger:
    add 1 to {staffbans::*}
command /removeban:
  trigger:
    remove 1 from {staffbans::*}

=============================================================

#Image:

 

 

The issue is when the bans goes higher than 1 this happens

 

2021-08-19_18_32_27.thumb.png.778ad6d96f9bef676fbbe626f29d2216.png

Edited by nolando09
Wrong image
Link to comment
Share on other sites

30 minutes ago, nolando09 said:

The issue is when the bans goes higher than 1 this happens

 

2021-08-19_18_32_27.thumb.png.778ad6d96f9bef676fbbe626f29d2216.png

use a regular variable {StaffBans} instead of a list variable {StaffBans::*}
Doing that you're just going to add 1 to the list variable over and over again

 

Also correct your grammar with "Staff have banned" instead of "Staff has banned"  : )

Edited by AgentGamerPro

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

18 minutes ago, AgentGamerPro said:

use a regular variable {StaffBans} instead of a list variable {StaffBans::*}
Doing that you're just going to add 1 to the list variable over and over again

 

Also correct your grammar with "Staff have banned" instead of "Staff has banned"  : )

Ok.. thanks!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...