- 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








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Near Spawn Nag


By Gershon12
Created: 2017/05/08 13:21:51 UTC-07:00 (6 years and 364 days ago)
Edited: 2017/05/08 13:37:40 UTC-07:00 (6 years and 364 days ago)
Likes: 0

Denizen Version: 101
Script Version: 1
Description:

Are some of your players clueless?

Do some of them build near your spawn and get griefed?

Do they complain about being griefed all the time?

Then this is the script for you!

Every 5 minutes, if a player is near the worlds spawn point it will send them a nag message to move away!

Instructions:
- Change "SurvivalWorld" to whatever world you want
- Change the ".mod[5]" to however many minutes you want the message to be sent, 5 for 5 minutes, 3 for 3 minutes etc.


Download script | View raw script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1600

grief_warning:
    type: world
    debug: false
    events:
        on system time minutely:
        - if <context.minute.mod[5].is[==].to[0]> {
          - foreach <server.list_online_players> {
            - if <def[value].world.equals_case_sensitive[w@SurvivalWorld]> {
              - if <w@SurvivalWorld.spawn_location.distance[<def[value].location>]> < 150 {
                - narrate targets:%value% "<&4><&l>Warning: <&c>You are close to this worlds spawn and may be griefed, please move further away!"
                - playsound <def[value].location> sound:successful_hit
                }
              }
         }






View History