Jump to content

I want skript ideas


Doge_Nate

Recommended Posts

options:
	join: {jointext%uuid of player%}
	leave: {leavetext%uuid of player%}
	
command /joinmessage <text>:
	trigger:
		if player has permission "message.join":
			if {blacklist::message::*} doesn't contain arg 1:
				set {jointext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

command /leavemessage <text>:
	trigger:
		if player has permission "message.leave":
			if {blacklist::message::*} doesn't contain arg 1:
				set {leavetext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

command /killmessage <text>:
	trigger:
		if player has permission "message.kill":
			if {blacklist::message::*} doesn't contain arg 1:
				set {killtext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

command /deathmessage <text>:
	trigger:
		if player has permission "message.death":
			if {blacklist::message::*} doesn't contain arg 1:
				set {deathtext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

on join:
	if player has permission "message.join":
		set join message to "{@join}"

on quit:
	if player has permission "message.leave":
		set quit message to "{@leave}"

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			if attacker has permission "message.kill":
				set death message to "%{deathtext%uuid of victim%}%"
				broadcast "%victim% %{killtext%uuid of attacker%}%."
			else:
				set death message to "%{deathtext%uuid of victim%}%"
		else if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"

 

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

On 8/10/2022 at 3:55 PM, JustRez said:

Could you help me out with creating buyable wall skript

with a command /coinwall get [ign] .

Gives the player an unbreaking 20 enchanted Stick named Coin Wall Creator that upon right clicking 2 points of a wall (Like you would using the wooden axe to set a region from The World Guard Plugin)

 

 

Once 2 points are selected you would type /coinwall set [coinwall name]

The wall is unbreakable but upon right clicking said way with a certain amount of of items

You might want to use world guard/edit to make this work but I cant code to save my life.

 

(For example, 32 diamonds to buy one of the walls which would make the wall blocks breakable again) add a command to set the currency to buy the wall

/coinwall setbalance [coinwallname] while holding the item or items on hand

 

I don't know if you saw my post since you've only responded to Orakpo but would this be possible for you to create?

Link to comment
Share on other sites

3 hours ago, ApexSplat said:
options:
	join: {jointext%uuid of player%}
	leave: {leavetext%uuid of player%}
	
command /joinmessage <text>:
	trigger:
		if player has permission "message.join":
			if {blacklist::message::*} doesn't contain arg 1:
				set {jointext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

command /leavemessage <text>:
	trigger:
		if player has permission "message.leave":
			if {blacklist::message::*} doesn't contain arg 1:
				set {leavetext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

command /killmessage <text>:
	trigger:
		if player has permission "message.kill":
			if {blacklist::message::*} doesn't contain arg 1:
				set {killtext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

command /deathmessage <text>:
	trigger:
		if player has permission "message.death":
			if {blacklist::message::*} doesn't contain arg 1:
				set {deathtext%uuid of player%} to arg 1
			else:
				send "&cYou used a blacklisted word!"

on join:
	if player has permission "message.join":
		set join message to "{@join}"

on quit:
	if player has permission "message.leave":
		set quit message to "{@leave}"

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			if attacker has permission "message.kill":
				set death message to "%{deathtext%uuid of victim%}%"
				broadcast "%victim% %{killtext%uuid of attacker%}%."
			else:
				set death message to "%{deathtext%uuid of victim%}%"
		else if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"

 

Is it possible to add Color Format support when setting your Custom Join/Leave/Kill/Death messages as currently the script doesn't currently do that.

Also, when you set the custom messages that's no indication that it has been set in chat.

Also Also if someone doesn't have the permission to set a custom message to join/leave/kill/death I just puts a bunch of random letters and numbers instead (Could it just put a general message for players who don't have permission to set their own message.

 

 

Other then that the script works flawlessly thanks for that.

Edited by Orakpo
Link to comment
Share on other sites

16 hours ago, Orakpo said:

Is it possible to add Color Format support when setting your Custom Join/Leave/Kill/Death messages as currently the script doesn't currently do that.

Also, when you set the custom messages that's no indication that it has been set in chat.

Also Also if someone doesn't have the permission to set a custom message to join/leave/kill/death I just puts a bunch of random letters and numbers instead (Could it just put a general message for players who don't have permission to set their own message.

 

 

Other then that the script works flawlessly thanks for that.

I needed to change something. As previously, it checked whether the blacklist contained arg 1 but if arg 1 had "bad" but contained other characters as well, it wouldn't be detected. So I switched it around to make it check whether arg 1 contained a word form the blacklist by looping the list. I also added what you wanted.

options:
	join: {jointext%uuid of player%}
	leave: {leavetext%uuid of player%}
	
command /joinmessage <text>:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {jointext%uuid of player%} to coloured arg 1
						send "&aYour join message is now %{jointext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage <text>:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {leavetext%uuid of player%} to coloured arg 1
						send "&aYour leave message is now %{leavetext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage <text>:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {killtext%uuid of player%} to coloured arg 1
						send "&aYour kill message is now %{killtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage <text>:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {deathtext%uuid of player%} to coloured arg 1
						send "&aYour death message is now %{deathtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "{@join}"

on quit:
	if player has permission "message.leave":
		set quit message to "{@leave}"

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			if attacker has permission "message.kill":
				set death message to "%{deathtext%uuid of victim%}%"
				broadcast "%victim% %{killtext%uuid of attacker%}%."
			else:
				set death message to "%{deathtext%uuid of victim%}%"
		else if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

 

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

10 hours ago, ApexSplat said:

I needed to change something. As previously, it checked whether the blacklist contained arg 1 but if arg 1 had "bad" but contained other characters as well, it wouldn't be detected. So I switched it around to make it check whether arg 1 contained a word form the blacklist by looping the list. I also added what you wanted.

options:
	join: {jointext%uuid of player%}
	leave: {leavetext%uuid of player%}
	
command /joinmessage <text>:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {jointext%uuid of player%} to coloured arg 1
						send "&aYour join message is now %{jointext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage <text>:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {leavetext%uuid of player%} to coloured arg 1
						send "&aYour leave message is now %{leavetext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage <text>:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {killtext%uuid of player%} to coloured arg 1
						send "&aYour kill message is now %{killtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage <text>:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {deathtext%uuid of player%} to coloured arg 1
						send "&aYour death message is now %{deathtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "{@join}"

on quit:
	if player has permission "message.leave":
		set quit message to "{@leave}"

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			if attacker has permission "message.kill":
				set death message to "%{deathtext%uuid of victim%}%"
				broadcast "%victim% %{killtext%uuid of attacker%}%."
			else:
				set death message to "%{deathtext%uuid of victim%}%"
		else if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

 

Wow you're quick but there's still the one issue with Default players still getting this message like the one image below.

So, for those who don't have the permission to use the command they should have a Basic Message given to them instead (Examples below)

Default Join: &f(Player) has joined the server.

Default Leave: &f(Player) has left the server.

Default Kill: &f(Player) has slain the player in combat.

Default Death:  &f(Player) has been slain the in combat.

a bug..PNG

Link to comment
Share on other sites

31 minutes ago, Orakpo said:

Wow you're quick but there's still the one issue with Default players still getting this message like the one image below.

So, for those who don't have the permission to use the command they should have a Basic Message given to them instead (Examples below)

Default Join: &f(Player) has joined the server.

Default Leave: &f(Player) has left the server.

Default Kill: &f(Player) has slain the player in combat.

Default Death:  &f(Player) has been slain the in combat.

a bug..PNG

options:
	join: {jointext%uuid of player%}
	leave: {leavetext%uuid of player%}
	
command /joinmessage <text>:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {jointext%uuid of player%} to coloured arg 1
						send "&aYour join message is now %{jointext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage <text>:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {leavetext%uuid of player%} to coloured arg 1
						send "&aYour leave message is now %{leavetext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage <text>:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {killtext%uuid of player%} to coloured arg 1
						send "&aYour kill message is now %{killtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage <text>:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {deathtext%uuid of player%} to coloured arg 1
						send "&aYour death message is now %{deathtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "{@join}"
	else:
		set join message to "%player% has joined the server."

on quit:
	if player has permission "message.leave":
		set quit message to "{@leave}"
	else:
		set quit message to "%player% has joined the server."

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			broadcast "%victim% %{deathtext%uuid of attacker%}%."
			set death message to "%attacker% has slain the %victim% in combat."
		if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}% %attacker%."
		if victim doesn't have permission "message.death":
			broadcast "%victim% has been slain by %victim% in combat."
		if attacker doesn't have permission "message.kill":
			roadcast "%attacker% has slain %victim% in combat."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

 

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

4 hours ago, ApexSplat said:
options:
	join: {jointext%uuid of player%}
	leave: {leavetext%uuid of player%}
	
command /joinmessage <text>:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {jointext%uuid of player%} to coloured arg 1
						send "&aYour join message is now %{jointext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage <text>:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {leavetext%uuid of player%} to coloured arg 1
						send "&aYour leave message is now %{leavetext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage <text>:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {killtext%uuid of player%} to coloured arg 1
						send "&aYour kill message is now %{killtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage <text>:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				loop {blacklist::message::*}:
					if arg 1 doesn't contain loop-value:
						set {deathtext%uuid of player%} to coloured arg 1
						send "&aYour death message is now %{deathtext%uuid of player%}%"
					else:
						send "&cYou used a blacklisted word!"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "{@join}"
	else:
		set join message to "%player% has joined the server."

on quit:
	if player has permission "message.leave":
		set quit message to "{@leave}"
	else:
		set quit message to "%player% has joined the server."

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			broadcast "%victim% %{deathtext%uuid of attacker%}%."
			set death message to "%attacker% has slain the %victim% in combat."
		if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}% %attacker%."
		if victim doesn't have permission "message.death":
			broadcast "%victim% has been slain by %victim% in combat."
		if attacker doesn't have permission "message.kill":
			roadcast "%attacker% has slain %victim% in combat."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

 

You fixed the default kill/death message (and I'm thankful for fixing that) but for some reason the Join and Leave messages still gives the weird text thing for some reason.

Also, I might be a bit late but is there a way to reset the player's custom message back to the default one if possible (The new Default messages you created)

My friend who is helping me out with the future server (As a builder suggested that if possible) Sorry about that I wished I had said that originally.

Edited by Orakpo
Link to comment
Share on other sites

On 8/10/2022 at 11:55 PM, JustRez said:

Could you help me out with creating buyable wall skript

with a command /coinwall get [ign] .

Gives the player an unbreaking 20 enchanted Stick named Coin Wall Creator that upon right clicking 2 points of a wall (Like you would using the wooden axe to set a region from The World Guard Plugin)

 

 

Once 2 points are selected you would type /coinwall set [coinwall name]

The wall is unbreakable but upon right clicking said way with a certain amount of of items

You might want to use world guard/edit to make this work but I cant code to save my life.

 

(For example, 32 diamonds to buy one of the walls which would make the wall blocks breakable again) add a command to set the currency to buy the wall

/coinwall setbalance [coinwallname] while holding the item or items on hand

 

I got confused on what you wanted made starting after the /coinwall set line. I have this made.

command /coinwall [<text>] [<player>]:
	trigger:
		if arg 1 is set:
			if arg 1 is "get":
				give stick of unbreaking 20 named "&6&lCoin Wall Generator" to player
			else if arg 1 is "set":
				if {coinwall::%player%::pos1} and {coinwall::%player%::pos2} are set:
					loop blocks within {coinwall::%player%::pos1} and {coinwall::%player%::pos2}:
						set loop-block gold block
					send "&aCoin Wall created"
				else:
					send "&aNot all positions are set. Left click to set pos1 and right click to set pos 2!"
		else:
			send "&aUsage: /coinwall {get | set} {player}

on left click:
	if name of player's held item is "&6&lCoin Wall Generator":
		set {coinwall::%player%::pos1} to location of event-block
		send "&aPosition 1 set!"

on right click:
	if name of player's held item is "&6&lCoin Wall Generator":
		set {coinwall::%player%::pos2} to location of event-block
		send "&aPosition 2 set!"

 

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

1 minute ago, Orakpo said:

Still Join and Leave messages still gives the weird text thing but you fixed the default kill/death message thankfully.

Also, I might be a bit late but is there a way to reset the player's custom message back to the default one if possible

My friend who is helping me out with the future server (As a builder suggested that if possible) Sorry about that I wished I had said that originally.

command /joinmessage [<text>]:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {jointext%uuid of player%} to coloured arg 1
							send "&aYour join message is now %{jointext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {jointext%uuid of player%} to "has joined the server"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage [<text>]:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {leavetext%uuid of player%} to coloured arg 1
							send "&aYour leave message is now %{leavetext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {leavetext%uuid of player%} to "has left the server"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage [<text>]:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {killtext%uuid of player%} to coloured arg 1
							send "&aYour kill message is now %{killtext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {killtext%uuid of player%} to "has slain"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage [<text>]:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {deathtext%uuid of player%} to coloured arg 1
							send "&aYour death message is now %{deathtext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {deathtext%uuid of player%} to "was slain by"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "%player% %{jointext%uuid of player%}%"
	else:
		set join message to "%player% has joined the server."

on quit:
	if player has permission "message.leave":
		set quit message to "%player% %{leavetext%uuid of player%}%"
	else:
		set quit message to "%player% has left the server."

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			broadcast "%victim% %{deathtext%uuid of attacker%}%."
		if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}% %attacker%."
		if victim doesn't have permission "message.death":
			broadcast "%victim% has been slain by %victim%."
		if attacker doesn't have permission "message.kill":
			roadcast "%attacker% has slain %victim%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

Not tested.

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

3 hours ago, ApexSplat said:

I got confused on what you wanted made starting after the /coinwall set line. I have this made.

command /coinwall [<text>] [<player>]:
	trigger:
		if arg 1 is set:
			if arg 1 is "get":
				give stick of unbreaking 20 named "&6&lCoin Wall Generator" to player
			else if arg 1 is "set":
				if {coinwall::%player%::pos1} and {coinwall::%player%::pos2} are set:
					loop blocks within {coinwall::%player%::pos1} and {coinwall::%player%::pos2}:
						set loop-block gold block
					send "&aCoin Wall created"
				else:
					send "&aNot all positions are set. Left click to set pos1 and right click to set pos 2!"
		else:
			send "&aUsage: /coinwall {get | set} {player}

on left click:
	if name of player's held item is "&6&lCoin Wall Generator":
		set {coinwall::%player%::pos1} to location of event-block
		send "&aPosition 1 set!"

on right click:
	if name of player's held item is "&6&lCoin Wall Generator":
		set {coinwall::%player%::pos2} to location of event-block
		send "&aPosition 2 set!"

 

Before I explain what, I meant from my Skript suggestion I would like to thank you for helping me out with this Skript.

There is one error with what you completed so far in the image below.

As for what I meant after selecting 2 points for the wall (with permissions for the commands below)

They can create a temporary buyable unbreakable wall using the command you would type /coinwall create [coinwall name]

Which would make the wall temporary unbreakable until someone right clicks the coin wall with the correct amount items using a command /coinwall price [coinwall name] [amount] 

/coinwall setcurrency [item]    "It sets the currency using the held item the must being only holding 1 of the currency"

(For example, the currency would be diamonds and using the command above you can set a different price to buy each of the walls (as I would like to set different prices for each wall created)

 

Also, a command to remove a Coinwall using /coinwall delete [coinwallname]

And a command to see all the created walls (with their prices to buy said wall) using /coinwall list.

a bug..PNG

Link to comment
Share on other sites

3 hours ago, ApexSplat said:
command /joinmessage [<text>]:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {jointext%uuid of player%} to coloured arg 1
							send "&aYour join message is now %{jointext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {jointext%uuid of player%} to "has joined the server"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage [<text>]:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {leavetext%uuid of player%} to coloured arg 1
							send "&aYour leave message is now %{leavetext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {leavetext%uuid of player%} to "has left the server"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage [<text>]:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {killtext%uuid of player%} to coloured arg 1
							send "&aYour kill message is now %{killtext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {killtext%uuid of player%} to "has slain"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage [<text>]:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {deathtext%uuid of player%} to coloured arg 1
							send "&aYour death message is now %{deathtext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {deathtext%uuid of player%} to "was slain by"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "%player% %{jointext%uuid of player%}%"
	else:
		set join message to "%player% has joined the server."

on quit:
	if player has permission "message.leave":
		set quit message to "%player% %{leavetext%uuid of player%}%"
	else:
		set quit message to "%player% has left the server."

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			broadcast "%victim% %{deathtext%uuid of attacker%}%."
		if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}% %attacker%."
		if victim doesn't have permission "message.death":
			broadcast "%victim% has been slain by %victim%."
		if attacker doesn't have permission "message.kill":
			roadcast "%attacker% has slain %victim%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

Not tested.

I guess this is progress as it's no longer showing the weird letter and stuff anymore haha

Now it's just saids the players (PlayersIGN) &4&lYOLO it keeps the &4&l in the message instead of setting the color format 

Edited by Orakpo
bruh moment
Link to comment
Share on other sites

10 hours ago, Orakpo said:

I guess this is progress as it's no longer showing the weird letter and stuff anymore haha

Now it's just saids the players (PlayersIGN) &4&lYOLO it keeps the &4&l in the message instead of setting the color format 

Can I get some screenshots? And maybe the players joining or leaving have the permission.

Discord: Dead#6905

Love anime!


Anime Gifs

Link to comment
Share on other sites

14 hours ago, ApexSplat said:

Can I get some screenshots? And maybe the players joining or leaving have the permission.

Good news Custom/Default Join and Leave Messages works now 

Bad news Custom/Default Kill/Death Messages no longer work

Thanks, JustRez for helping me out with testing the skript as you can't test the kill/death/leave message without a second person to confirm it Capture.PNG.004a7a907649623bbb71f6704d5b2322.PNGCapture.PNG.20e8997c4e293a2a1d44b2fdd02e871f.PNG

 

Capture.PNG

Capture.PNG

Capture.PNG

Edited by Orakpo
Link to comment
Share on other sites

11 hours ago, Orakpo said:

Good news Custom/Default Join and Leave Messages works now 

Bad news Custom/Default Kill/Death Messages no longer work

Thanks, JustRez for helping me out with testing the skript as you can't test the kill/death/leave message without a second person to confirm it Capture.PNG.004a7a907649623bbb71f6704d5b2322.PNGCapture.PNG.20e8997c4e293a2a1d44b2fdd02e871f.PNG

 

Capture.PNG

Capture.PNG

Capture.PNG

command /joinmessage [<text>]:
	trigger:
		if player has permission "message.join":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {jointext%uuid of player%} to coloured arg 1
							send "&aYour join message is now %{jointext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {jointext%uuid of player%} to "has joined the server"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"

command /leavemessage [<text>]:
	trigger:
		if player has permission "message.leave":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {leavetext%uuid of player%} to coloured arg 1
							send "&aYour leave message is now %{leavetext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {leavetext%uuid of player%} to "has left the server"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /killmessage [<text>]:
	trigger:
		if player has permission "message.kill":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {killtext%uuid of player%} to coloured arg 1
							send "&aYour kill message is now %{killtext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {killtext%uuid of player%} to "has slain"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

command /deathmessage [<text>]:
	trigger:
		if player has permission "message.death":
			if arg 1 is set:
				if arg 1 isn't "reset":
					loop {blacklist::message::*}:
						if arg 1 doesn't contain loop-value:
							set {deathtext%uuid of player%} to coloured arg 1
							send "&aYour death message is now %{deathtext%uuid of player%}%"
						else:
							send "&cYou used a blacklisted word!"
				else:
					set {deathtext%uuid of player%} to "was slain by"
					send "&aReset"
			else:
				send "&aYou need to add what you want your message to be"
		else:
			send "&cNo permission"

on join:
	if player has permission "message.join":
		set join message to "%player% %{jointext%uuid of player%}%"
	else:
		set join message to "%player% has joined the server."

on quit:
	if player has permission "message.leave":
		set quit message to "%player% %{leavetext%uuid of player%}%"
	else:
		set quit message to "%player% has left the server."

on death of a player:
	if attacker is player:
		if victim has permission "message.death":
			broadcast "%victim% %{deathtext%uuid of attacker%}%."
		if attacker has permission "message.kill":
			broadcast "%victim% %{killtext%uuid of attacker%}% %attacker%."
		if victim doesn't have permission "message.death":
			broadcast "%victim% has been slain by %victim%."
		if attacker doesn't have permission "message.kill":
			broadcast "%attacker% has slain %victim%."

command /blacklistmessage [<text>] [<text>]:
	trigger:
		if player has permission "message.blacklist":
			if arg 1 is set:
				if arg 1 is "add":
					if arg 2 is set:
						if {blacklist::message::*} doesn't contain arg 2:
							add arg 2 to {blacklist::message::*}
							send "&aAdded %arg 2% &ato the blacklist!"
						else:
							send "&aThat word is already blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 is "remove":
					if arg 2 is set:
						if {blacklist::message::*} contains arg 2:
							remove arg 2 from {blacklist::message::*}
							send "&aRemoved %arg 2% &aas a blacklisted word"
						else:
							send "&aThat word isn't blacklisted"
					else:
						send "&aSpecify a word to blacklist"
				else if arg 1 isn't "remove" or "add":
					send "&aUsage: /blacklistmessage {add | remove} {word}"
			else:
				send "&aUsage: /blacklistmessage {add | remove} {word}"
		else:
			send "&cNo permission"

I spelt broadcast wrong, mb. Tell me if it still doesn't work.

Discord: Dead#6905

Love anime!


Anime Gifs

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...