Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
MythicCraft
MythicCosmetics
Commits
ac5f14f7
Commit
ac5f14f7
authored
3 years ago
by
Ashijin
Browse files
Options
Download
Email Patches
Plain Diff
aaa
parent
32d7bc28
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
116 deletions
+54
-116
plugin/.flattened-pom.xml
plugin/.flattened-pom.xml
+0
-115
plugin/.gitignore
plugin/.gitignore
+1
-0
plugin/src/main/java/io/lumine/cosmetics/commands/CustomizeCommand.java
...n/java/io/lumine/cosmetics/commands/CustomizeCommand.java
+50
-0
plugin/src/main/java/io/lumine/cosmetics/commands/admin/AdminCommand.java
...java/io/lumine/cosmetics/commands/admin/AdminCommand.java
+3
-1
No files found.
plugin/.flattened-pom.xml
deleted
100644 → 0
View file @
32d7bc28
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
io.lumine
</groupId>
<artifactId>
MCCosmetics
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
io.lumine
</groupId>
<artifactId>
LumineUtils
</artifactId>
<version>
1.18-SNAPSHOT
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
1.18.22
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.ticxo.modelengine
</groupId>
<artifactId>
api
</artifactId>
<version>
R2.2.0
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
io.papermc.paper
</groupId>
<artifactId>
paper-api
</artifactId>
<version>
1.17-R0.1-SNAPSHOT
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.comphenix.protocol
</groupId>
<artifactId>
ProtocolLib-API
</artifactId>
<version>
4.4.0
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
net.kyori
</groupId>
<artifactId>
adventure-api
</artifactId>
<version>
4.8.1
</version>
<scope>
provided
</scope>
<optional>
true
</optional>
</dependency>
<dependency>
<groupId>
io.lumine
</groupId>
<artifactId>
Mythic-Dist
</artifactId>
<version>
4.14.2
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
LibsDisguises
</groupId>
<artifactId>
LibsDisguises
</artifactId>
<version>
10.0.24
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
me.clip
</groupId>
<artifactId>
placeholderapi
</artifactId>
<version>
2.10.9
</version>
<scope>
provided
</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>
nexus
</id>
<url>
https://mvn.lumine.io/repository/maven/
</url>
</repository>
<repository>
<id>
lumine-public
</id>
<url>
https://mvn.lumine.io/repository/maven-public/
</url>
</repository>
<repository>
<id>
spigot-repo
</id>
<url>
https://hub.spigotmc.org/nexus/content/repositories/snapshots/
</url>
</repository>
<repository>
<id>
papermc
</id>
<url>
https://papermc.io/repo/repository/maven-public/
</url>
</repository>
<repository>
<id>
sk89q-repo
</id>
<url>
https://maven.sk89q.com/repo/
</url>
</repository>
<repository>
<id>
md_5-public
</id>
<url>
https://repo.md-5.net/content/groups/public/
</url>
</repository>
<repository>
<id>
md_5-snapshots
</id>
<url>
https://repo.md-5.net/content/repositories/snapshots/
</url>
</repository>
<repository>
<id>
placeholderapi
</id>
<url>
https://repo.extendedclip.com/content/repositories/placeholderapi/
</url>
</repository>
<repository>
<id>
filoghost-repo
</id>
<url>
https://ci.filoghost.me/plugin/repository/everything/
</url>
</repository>
<repository>
<id>
CodeMC
</id>
<url>
https://repo.codemc.org/repository/maven-public
</url>
</repository>
<repository>
<id>
jitpack.io
</id>
<url>
https://jitpack.io
</url>
</repository>
<repository>
<id>
lumine
</id>
<url>
https://mvn.lumine.io/repository/maven/
</url>
</repository>
</repositories>
</project>
This diff is collapsed.
Click to expand it.
plugin/.gitignore
0 → 100644
View file @
ac5f14f7
/.flattened-pom.xml
This diff is collapsed.
Click to expand it.
plugin/src/main/java/io/lumine/cosmetics/commands/CustomizeCommand.java
0 → 100644
View file @
ac5f14f7
package
io.lumine.cosmetics.commands
;
import
java.util.Collections
;
import
java.util.List
;
import
org.bukkit.command.CommandSender
;
import
org.bukkit.entity.Player
;
import
io.lumine.cosmetics.MCCosmeticsPlugin
;
import
io.lumine.cosmetics.constants.Permissions
;
import
io.lumine.utils.commands.Command
;
public
class
CustomizeCommand
extends
Command
<
MCCosmeticsPlugin
>
{
public
CustomizeCommand
(
MCCosmeticsPlugin
plugin
)
{
super
(
plugin
);
}
public
CustomizeCommand
(
Command
command
)
{
super
(
command
);
}
@Override
public
boolean
onCommand
(
CommandSender
sender
,
String
[]
args
)
{
final
var
player
=
(
Player
)
sender
;
final
var
profile
=
getPlugin
().
getProfiles
().
getProfile
(
player
);
getPlugin
().
getMenuManager
().
getCustomizeMenu
().
open
(
player
,
profile
);
return
true
;
}
@Override
public
List
<
String
>
onTabComplete
(
CommandSender
sender
,
String
[]
args
)
{
return
Collections
.
emptyList
();
}
@Override
public
String
getPermissionNode
()
{
return
Permissions
.
COMMAND_BASE
;
}
@Override
public
boolean
isConsoleFriendly
()
{
return
false
;
}
@Override
public
String
getName
()
{
return
"customize"
;
}
}
This diff is collapsed.
Click to expand it.
plugin/src/main/java/io/lumine/cosmetics/commands/admin/AdminCommand.java
View file @
ac5f14f7
...
...
@@ -14,11 +14,13 @@ public class AdminCommand extends Command<MCCosmeticsPlugin> {
public
AdminCommand
(
MCCosmeticsPlugin
plugin
)
{
super
(
plugin
);
addSubCommands
(
new
ReloadCommand
(
this
));
}
@Override
public
boolean
onCommand
(
CommandSender
sender
,
String
[]
args
)
{
CommandHelper
.
sendSuccess
(
sender
,
"MCCosmetics
has been reloaded.
"
);
CommandHelper
.
sendSuccess
(
sender
,
"MCCosmetics
!
"
);
return
true
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment