Vdax Posted November 2, 2019 Share Posted November 2, 2019 You know 2b2t and they have like green text after > and that's pretty cool becase im making a anarchy server with no abuse everything is REALLY allowed not like other servers they ban you for hacking and those are unofficial plugins but i trust them of 2b2t that i would be thankful if they could be in skript i tried coding /kill command i didn't tested it yet but those are the plugins: ChatCo (greentext, ignoring, pm colors) REGEx (to block certain strings like bukkit: for ex. /bukkit:help) A custom plugin to block certain commands (like /? and /version) RandomSpawn And even if could someone took they're time and searched all 2b2t's death messages i would be thankful if they appeared. They can be one by one i don't want all of them at one time i just wanna make good server even tho im bad at it so im asking for help. And i know those are not skripts but they are plugins but would be cool if atleast some of them could be made shortly in skript. If you actually gonna help me i would be really really thankful. Link to comment Share on other sites More sharing options...
Dadrien Posted November 4, 2019 Share Posted November 4, 2019 (edited) The code listed below should be able to do 3/4 of the things asked. # Events chat: set {_fc} to first character of message {_fc} = ">" set chat format to "<%player%> &a%message%" command: command contains ":": player doesn't have permission "*": cancel event send "&4Illegal syntax!" command: command = "/me", "/say", "/help", "/?", "/version", "/ver", "/plugins" or "/pl": player doesn't have permission "*": send "&4No permission!" To make players spawn in a radius around spawn rather than directly on it, you can use in-game gamerule commands. To do this, type in /gamerule spawnRadius. You should be able to fill in the blanks from there. Edited November 4, 2019 by Dadrien Link to comment Share on other sites More sharing options...
ThatOneSponk Posted June 27, 2020 Share Posted June 27, 2020 On 6/24/2020 at 7:45 AM, Infisrael said: I would like also to see custom /kill command that kills yourself and /togglechat that disabled the chat only for you. I will build onto @Dadrien's code: # Events chat: set {_fc} to first character of message {_fc} = ">" set {_p} to event-player set {_m} to message loop all players: if {chat::toggled::*} doesn't contain loop-player: add loop-player to {_t::*} send "<%{_p}%> &a%{_m}%" to {_t::*} set chat format to "<%player%> &a%message%" command: command contains ":": player doesn't have permission "*": cancel event send "&4Illegal syntax!" command: command = "/me", "/say", "/help", "/?", "/version", "/ver", "/plugins" or "/pl": player doesn't have permission "*": send "&4No permission!" #Commands command /togglechat: trigger: if {chat::toggled::*} doesn't contain player: add player to {chat::toggled::*} send "&cYou have disabled chat!" else: remove player from {chat::toggled::*} send "&aYou have enabled chat!" command /kill: trigger: kill player This should work, let me know if there are any issues. Quote “When life gives you lemons, don't make lemonade. Make life take the lemons back! Get mad!" Default - 12/12/2015 [VIP] - 10/8/2018 [JR.MOD] - 9/12/2020 [MOD] - 10/14/2020 Link to comment Share on other sites More sharing options...
ThatOneSponk Posted June 27, 2020 Share Posted June 27, 2020 # Events chat: set {_fc} to first character of message {_fc} = ">" loop all players: if {chat::toggled::*} doesn't contain loop-player: add loop-player to {_t::*} send "<%player%> &a%message%" to {_t::*} set chat format to "<%player%> &a%message%" on join: loop all players: if {connections::toggled::*} doesn't contain loop-player: add loop-player to {_t::*} send "&e%player% has joined the game" to {_t::*} on quit: loop all players: if {connections::toggled::*} doesn't contain loop-player: add loop-player to {_t::*} send "&e%player% has left the game" to {_t::*} command: command contains ":": player doesn't have permission "*": cancel event send "&4Illegal syntax!" command: command = "/me", "/say", "/help", "/?", "/version", "/ver", "/plugins" or "/pl": player doesn't have permission "*": send "&4No permission!" #Commands command /togglechat: trigger: if {chat::toggled::*} doesn't contain player: add player to {chat::toggled::*} send "&cYou have disabled chat!" else: remove player from {chat::toggled::*} send "&aYou have enabled chat!" command /toggleconnections: trigger: if {connections::toggled::*} doesn't contain player: add player to {connections::toggled::*} send "&cYou have disabled connections!" else: remove player from {connections::toggled::*} send "&aYou have enabled connections!" command /kill: trigger: kill player You can probably optimize this skript with functions if you want, but this should work. Quote “When life gives you lemons, don't make lemonade. Make life take the lemons back! Get mad!" Default - 12/12/2015 [VIP] - 10/8/2018 [JR.MOD] - 9/12/2020 [MOD] - 10/14/2020 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now