Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UltimateKits
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bukkit Plugin Requests
UltimateKits
Commits
74b24442
Commit
74b24442
authored
10 years ago
by
Zandor Smith
Browse files
Options
Downloads
Patches
Plain Diff
+ Some more main files.
parent
f9967be4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/com/zandor300/ultimatekits/UltimateKits.java
+9
-0
9 additions, 0 deletions
src/main/java/com/zandor300/ultimatekits/UltimateKits.java
src/main/java/com/zandor300/ultimatekits/commands/KitCommand.java
+23
-0
23 additions, 0 deletions
.../java/com/zandor300/ultimatekits/commands/KitCommand.java
with
32 additions
and
0 deletions
src/main/java/com/zandor300/ultimatekits/UltimateKits.java
+
9
−
0
View file @
74b24442
package
com.zandor300.ultimatekits
;
import
com.zandor300.ultimatekits.commands.KitCommand
;
import
com.zandor300.ultimatekits.commands.UltimateKitsCommand
;
import
com.zandor300.ultimatekits.enums.Kit
;
import
com.zandor300.ultimatekits.inventories.KitMenu
;
import
com.zandor300.zsutilities.commandsystem.CommandManager
;
import
com.zandor300.zsutilities.utilities.Chat
;
import
org.bukkit.Bukkit
;
import
org.bukkit.ChatColor
;
...
...
@@ -62,6 +65,12 @@ public class UltimateKits extends JavaPlugin {
},
20
l
,
20
l
);
chat
.
sendConsoleMessage
(
"Started timers."
);
chat
.
sendConsoleMessage
(
"Registering commands..."
);
CommandManager
cm
=
new
CommandManager
();
cm
.
registerCommand
(
new
KitCommand
(),
this
);
cm
.
registerCommand
(
new
UltimateKitsCommand
(),
this
);
chat
.
sendConsoleMessage
(
"Registered commands."
);
chat
.
sendConsoleMessage
(
"Everything is setup!"
);
chat
.
sendConsoleMessage
(
"Enabled."
);
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/zandor300/ultimatekits/commands/KitCommand.java
0 → 100644
+
23
−
0
View file @
74b24442
package
com.zandor300.ultimatekits.commands
;
import
com.zandor300.ultimatekits.inventories.KitMenu
;
import
com.zandor300.zsutilities.commandsystem.Command
;
import
org.bukkit.command.CommandSender
;
import
org.bukkit.entity.Player
;
/**
* Created by Zandor on 3/23/15.
*/
public
class
KitCommand
extends
Command
{
public
KitCommand
()
{
super
(
"kit"
,
"Open the kit gui."
);
}
@Override
public
void
execute
(
CommandSender
sender
,
String
[]
args
)
{
if
(!(
sender
instanceof
Player
))
return
;
KitMenu
.
open
((
Player
)
sender
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment