@@ -56,7 +56,7 @@ class Unity @Inject constructor(
5656 companion object {
5757 const val ID = " unity"
5858 const val NAME = " Unity"
59- const val VERSION = " 2.3.1 "
59+ const val VERSION = " 2.3.2 "
6060 const val AUTHOR = " RandomByte"
6161
6262 const val NUCLEUS_ID = " nucleus"
@@ -156,7 +156,7 @@ class Unity @Inject constructor(
156156
157157 Sponge .getCommandManager().register(this , CommandSpec .builder()
158158 // the root unity/marry command is the 'request unity'-command
159- .permission(PLAYER_PERMISSION )
159+ .permission(" $ PLAYER_PERMISSION.marry " )
160160 .arguments(player(PLAYER_ARG .toText()))
161161 .executor(RequestUnityCommand (
162162 configAccessor,
@@ -169,45 +169,45 @@ class Unity @Inject constructor(
169169 ))
170170
171171 .child(CommandSpec .builder()
172- .permission(PLAYER_PERMISSION )
172+ .permission(" $ PLAYER_PERMISSION.help " )
173173 .executor(HelpCommand (configAccessor))
174174 .build(), " help" )
175175 .child(CommandSpec .builder()
176- .permission(PLAYER_PERMISSION )
176+ .permission(" $ PLAYER_PERMISSION.accept " )
177177 .arguments(player(PLAYER_ARG .toText()))
178178 .executor(AcceptRequestCommand (configAccessor, this ::unityRequests, removeRequest))
179179 .build(), " accept" )
180180 .child(CommandSpec .builder()
181- .permission(PLAYER_PERMISSION )
181+ .permission(" $ PLAYER_PERMISSION.decline " )
182182 .arguments(player(PLAYER_ARG .toText()))
183183 .executor(DeclineRequestCommand (configAccessor, this ::unityRequests, removeRequest))
184184 .build(), " decline" )
185185 .child(CommandSpec .builder()
186- .permission(PLAYER_PERMISSION )
186+ .permission(" $ PLAYER_PERMISSION.cancel " )
187187 .arguments(player(PLAYER_ARG .toText()))
188188 .executor(CancelRequestCommand (configAccessor, this ::unityRequests, removeRequest))
189189 .build(), " cancel" )
190190 .child(CommandSpec .builder()
191- .permission(PLAYER_PERMISSION )
191+ .permission(" $ PLAYER_PERMISSION.list " )
192192 .executor(ListUnitiesCommand (configAccessor))
193193 .build(), " list" )
194194 .child(CommandSpec .builder()
195- .permission(PLAYER_PERMISSION )
195+ .permission(" $ PLAYER_PERMISSION.divorce " )
196196 .executor(DivorceCommand (configAccessor))
197197 .build(), " divorce" )
198198 .child(CommandSpec .builder()
199- .permission(PLAYER_PERMISSION )
199+ .permission(" $ PLAYER_PERMISSION.tp " )
200200 .executor(TeleportCommand (configAccessor))
201201 .build(), " teleport" , " tp" )
202202 .child(CommandSpec .builder()
203- .permission(PLAYER_PERMISSION )
203+ .permission(" $ PLAYER_PERMISSION.gift " )
204204 .executor(GiftCommand (configAccessor))
205205 .build(), " gift" )
206206 .child(CommandSpec .builder()
207- .permission(PLAYER_PERMISSION )
207+ .permission(" $ PLAYER_PERMISSION.home.home " )
208208 .executor(HomeCommand (configAccessor))
209209 .child(CommandSpec .builder()
210- .permission(PLAYER_PERMISSION )
210+ .permission(" $ PLAYER_PERMISSION.home.set " )
211211 .executor(SetHomeCommand (configAccessor))
212212 .build(), " set" )
213213 .build(), " home" )
0 commit comments