Skip to content
Browse files

Fix bare string warnings in sample scripts

  • Loading branch information
PseudoKnight committed Dec 11, 2019
1 parent 06a064d commit b6aa64b89171cc5e324421094bf321345ea37530
Showing with 5 additions and 5 deletions.
  1. +4 −4 src/main/resources/samp_aliases.txt
  2. +1 −1 src/main/resources/samp_main.txt
@@ -25,7 +25,7 @@
Suppose we have a plugin that broadcasts messages only to moderators and it's a very long command.
We also want to add the name of the player running the command. For that we can use the function player().
/mb $ = /mod-broadcast '('.player().')' $
/mb $ = '/mod-broadcast ('.player().')' $

# Lets notify our users to use the new, shorter version
/mod-broadcast [$] = msg(color('red').'Use /mb instead of /mod-broadcast')
@@ -34,9 +34,9 @@
Give kit with a macro
Gives a diamond pickaxe, shovel, and axe. Note that commands are separated by \ and this creates a macro.
/kit diamond = /give player() diamond_pickaxe \
/give player() diamond_shovel \
/give player() diamond_axe
/kit diamond = /give player() 'diamond_pickaxe' \
/give player() 'diamond_shovel' \
/give player() 'diamond_axe'

Give item command with optional item quantity.
@@ -16,7 +16,7 @@ console('Welcome to this server, which is running CommandHelper! (Change this me

# Bind an event to the player join, and tell ops hello.
# We send in @server_name, so we can use it inside the event handler
bind(player_join, null, null, @event, @server_name) {
bind('player_join', null, null, @event, @server_name) {
# If the player is an op, let's send them a welcome message
if(pisop(@event['player'])) {
msg('Welcome to '.@server_name.' (Change this message in plugins/CommandHelper/');

0 comments on commit b6aa64b

Please sign in to comment.
You can’t perform that action at this time.