Date: 2020/04/25 06:56:19 UTC-07:00
Type: Denizen Script
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
goinq_command_gm:
type: command
debug: false
name: gm
description: choose your gamemode
usage: /gm
permission: goinq.admin
script:
- if <context.args.get[1]> == 1:
- adjust <player> gamemode:creative
- stop
- if <context.args.get[1]> == 0:
- adjust <player> gamemode:survival
- stop
- if <context.args.get[1]> == 2:
- adjust <player> gamemode:spectator
- stop
- if <context.args.get[1]> == 3:
- adjust <player> gamemode:adventure
- stop
- else:
- inventory open d:goinq_gui_gm
#
goinq_gui_gm:
type: inventory
debug: false
inventory: chest
title: Gamemode wählen
size: 9
slots:
- [] [goinq_gui_gm_creative] [] [goinq_gui_gm_survival] [] [goinq_gui_gm_spectator] [] [goinq_gui_gm_adventure] []
#
goinq_gui_gm_creative:
type: item
material: diamond
display name: <red>Creative
lore:
- ' '
- '<gray>Set your gamemode to creative'
goinq_gui_gm_survival:
type: item
material: coal
display name: <red>Survival
lore:
- ' '
- '<gray>Set your gamemode to survival'
goinq_gui_gm_spectator:
type: item
material: feather
display name: <red>Spectator
lore:
- ' '
- '<gray>Set your gamemode to spectator'
- '<gray>Warning: in spectator mode you can`t use the gui!'
goinq_gui_gm_adventure:
type: item
material: stone_sword
mechanisms:
flags: HIDE_ATTRIBUTES
display name: <red>Adventure
lore:
- ' '
- '<gray>Set your gamemode to adventure'
#
goinq_event_gui:
type: world
events:
on player clicks in goinq_gui_gm:
- determine passively cancelled
- if <context.item.material.name> = red_wool:
- inventory open d:adminpanel_goinq_start_gui
- if <context.item.material.name> = diamond:
- adjust <player> gamemode:creative
- if <context.item.material.name> = coal:
- adjust <player> gamemode:survival
- if <context.item.material.name> = feather:
- adjust <player> gamemode:spectator
- if <context.item.material.name> = stone_sword:
- adjust <player> gamemode:adventure