referredby:
type: command
name: referredby
description: gives credit to whoever reffered you to the server
usage: /referredby
script:
- if <context.args.size> == 0:
- narrate "<&8><&o>must specify playername"
- if <context.args.size> > 1:
- narrate "<&8><&o>Too Many Arguments, /refferedby *playername*"
- if <context.args.size> == 1:
- - if <context.args.1.contains_any_text[<server.online_players>]>:
- - narrate "<&8><&o>That player is online"
+ - if <server.match_player[<context.args.get[1]>]||null> != null:
+ - narrate "<&8><&o>That player is online."
+ - else if <server.match_offline_player[<context.args.get[1]>]||null> != null:
+ - narrate "<&8><&o>The player is not online."
- else:
- - narrate "<&8><&o>The player, <context.args.1> is not online"
+ - narrate "<&8><&o>No player named <context.args.get[1]> was found."