View difference between Paste ID: nZ2SwKri and 68NA2rpS
SHOW: | | - or go back to the newest paste.
1
#permission nodes:
2
#levelup.addxp
3
#levelup.setlevel
4
#levelup.lowerExpNeeded
5
#
6
#formula key:
7
# L = players level
8
# Z = level offset
9
# L = exp subtractive (with permission node: levelup.lowerExpNeeded)
10
#formula for calculating exp:
11
#(level + z)^x + y - L
12
13
expFormula:
14
  Z: 0
15
  X: 2
16
  Y: 10
17
  L: 0
18
  
19
Server:
20
  capEnabled: false
21
  #in seconds
22
  remove xp cap every: 3600
23
  
24
  exp cap reset message: '&bExp caps have been reset!'
25
  exp cap reached message: "&4You have reached the Exp cap for the &b<class> class." 
26
  
27
  #the text: <player>, <expGained>, <level>, <expNeeded>, <class> and <totalExp> will be replaced with their correct values
28
  exp gain message: "&c<class> &r+ &6<expGained> &r-> &6<totalExp>/<expNeeded>"
29
  level up message: "Congrats <player>, &6Level up! &r-> &c<class>"
30
  
31
32
  
33
#how often will this plugin save player data? (in seconds)
34
saveTime: 60
35
36
items not to consider air:
37
  - WOOD_PICKAXE
38
  - STONE_PICKAXE
39
  - IRON_PICKAXE
40
  - GOLD_PICKAXE
41
  - DIAMOND_PICKAXE
42
  - WOOD_HOE
43
  - STONE_HOE
44
  - IRON_HOE
45
  - GOLD_HOE
46
  - DIAMOND_HOE
47
  - WOOD_AXE
48
  - STONE_AXE
49
  - IRON_AXE
50
  - GOLD_AXE
51
  - DIAMOND_AXE
52
  - WOOD_SPADE
53
  - STONE_SPADE
54
  - IRON_SPADE
55
  - GOLD_SPADE
56
  - DIAMOND_SPADE
57
  - WOOD_SWORD
58
  - STONE_SWORD
59
  - IRON_SWORD
60
  - GOLD_SWORD
61
  - DIAMOND_SWORD
62
  - BOW
63
enabledClasses:
64
  - Attack
65
  - Mining
66
  - Archery
67
  - Woodcutting
68
enabledPermissions:
69
  - test.node.one
70
  - test.node.two
71
  - test.node.three
72
73
classes:
74
  Mining:
75
    xpcap: 10000
76
#    requiredPermissions:
77
#      - test.node.one
78
#      - test.node.two
79
    blocks:
80
      COAL_ORE: 200.0
81
      IRON_ORE: 100.0
82
      GOLD_ORE: 300.0
83
      DIAMOND_ORE: 20.0
84
      
85
    levelRewards:
86
      5:
87
        - tell <player> You have reached level 5 <class>!
88
        - pex user <player> add allow.diamondpick
89
        - tell <player> You now have access to the Diamond Pickaxe!
90
      2:
91
        - tell <player> You have reached level 2 <class>!
92
  Woodcutting:
93
    xpcap: 10000
94
    weapons:
95
      - WOOD_AXE
96
      - STONE_AXE
97
      - IRON_AXE
98
      - GOLD_AXE
99
      - DIAMOND_AXE
100
    blocks:
101
      LOG: 5
102
  Attack:
103
    xpcap: 10000
104
    weapons:
105
      - WOOD_SWORD
106
      - STONE_SWORD
107
      - IRON_SWORD
108
      - GOLD_SWORD
109
      - DIAMOND_SWORD
110
      - AIR
111
    kills:
112
      SKELETON: 3.0
113
      SPIDER: 2.5
114
      ZOMBIE: 2.0
115
      SLIME: 1.0
116
      CREEPER: 3.5
117
      PIG_ZOMBIE: 4.0
118
      ENDERMAN: 4.25
119
      CAVE_SPIDER: 3.0
120
      SILVERFISH: 0.1
121
      BLAZE: 5.5
122
      MAGMA_CUBE: 4.0
123
      GHAST: 8.0
124
      ENDER_DRAGON: 100.0
125
      WITHER: 15.0
126
      WITCH: 2.0
127
    levelRewards:
128
      2:
129
        - tell <player> Congratulations! You have reached lvl 10 <class>!
130
        - pex user <player> add allowed.stoneSword
131
      
132
  Archery:
133
    weapons:
134
      - BOW
135
    kills:
136
      SKELETON: 5
137
      SPIDER: 2
138
      ZOMBIE: 1
139
      SLIME: 3
140
      CREEPER: 5
141
      PIG_ZOMBIE: 6
142
      ENDERMAN: 15
143
      CAVE_SPIDER: 7
144
      SILVERFISH: 0.1
145
      BLAZE: 10
146
      MAGMA_CUBE: 5
147
      GHAST: 3
148
      ENDER_DRAGON: 35
149
      WITHER: 15
150
      WITCH: 5