FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CommandAPI/misc/subcommands.java at dev/regex-mod · CommandAPI/CommandAPI · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
CommandAPI
/
CommandAPI
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
78
Star
651
Code
Issues
46
Pull requests
10
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CommandAPI
/
misc
/
subcommands.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (39 loc) · 1.32 KB
Breadcrumbs
CommandAPI
/
misc
/
subcommands.java
Copy path
File metadata and controls
41 lines (39 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
new
CommandAPICommand
(
"perm"
)
.
withSubcommand
(
new
CommandAPICommand
(
"group"
)
.
withSubcommand
(
new
CommandAPICommand
(
"add"
)
.
withArguments
(
new
StringArgument
(
"permission"
))
.
withArguments
(
new
StringArgument
(
"groupName"
))
.
executes
((
sender
,
args
) -> {
//perm group add
Bukkit
.
broadcastMessage
(
"perm group add "
+
Arrays
.
deepToString
(
args
));
})
)
.
withSubcommand
(
new
CommandAPICommand
(
"remove"
)
.
withArguments
(
new
StringArgument
(
"permission"
))
.
withArguments
(
new
StringArgument
(
"groupName"
))
.
executes
((
sender
,
args
) -> {
//perm group remove
Bukkit
.
broadcastMessage
(
"perm group remove "
+
Arrays
.
deepToString
(
args
));
})
)
.
executes
((
s
,
a
) -> {})
)
.
withSubcommand
(
new
CommandAPICommand
(
"user"
)
.
withSubcommand
(
new
CommandAPICommand
(
"add"
)
.
withArguments
(
new
StringArgument
(
"permission"
))
.
withArguments
(
new
StringArgument
(
"userName"
))
.
executes
((
sender
,
args
) -> {
//perm user add
Bukkit
.
broadcastMessage
(
"perm user add "
+
Arrays
.
deepToString
(
args
));
})
)
.
withSubcommand
(
new
CommandAPICommand
(
"remove"
)
.
withArguments
(
new
StringArgument
(
"permission"
))
.
withArguments
(
new
StringArgument
(
"userName"
))
.
executes
((
sender
,
args
) -> {
//perm user remove
Bukkit
.
broadcastMessage
(
"perm user remove"
+
Arrays
.
deepToString
(
args
));
})
)
)
.
register
();
Back
|
FazBrowse Home
|
New Git URL