- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleEdit of P#28511 - Untitled Paste
TypeDenizen Script
Date2016/01/15 17:21:32 UTC-08:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2800
seenalts:
  type: world
  events:
    on player logs in:
      - wait 1t
      - define IP <context.hostname.after[/].replace[.].with[_]>
      - flag server <def[IP]>:->:<player>
      - flag <player> seen-ip:<def[IP]>
      - if <server.flag[<def[IP]>].as_list.filter[is_banned].size> != 0 {
        - narrate "<&c><player.name><&r> has joined from an IP shared with banned players!" targets:<server.list_online_players.filter[has_permission[my.permission.node].global]>
      }
    on seenalts command:
      - if <player.has_permission[my.permission.node].not> {
        - narrate "<&c>You do not have the permission to do this."
        - determine fulfilled
        }
      - if <context.args.size> != 1 {
        - narrate "<&c>You must enter one argument only!"
        - determine fulfilled
      }
      - define player <server.match_offline_player[<context.args.get[1]>]||null>
      - if <def[player]> == null {
        - narrate "<&c>No player found by that name!"
        - determine fulfilled
        }
      - narrate "<&c>Accounts from the same IP address<&co> <server.flag[<def[Player].flag[seen-ip]||null>].as_list.formatted||Nobody>"
      - determine fulfilled



RawRaw



Pastes made: 75780