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
10ab63c1
Commit
10ab63c1
authored
2 years ago
by
Ashijin
Browse files
Options
Download
Email Patches
Plain Diff
Added removespray command to remove your sprayed sprays
parent
ba61cfd2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
3 deletions
+59
-3
api/.flattened-pom.xml
api/.flattened-pom.xml
+1
-1
api/pom.xml
api/pom.xml
+2
-1
plugin/src/main/java/io/lumine/cosmetics/MCCosmeticsPlugin.java
.../src/main/java/io/lumine/cosmetics/MCCosmeticsPlugin.java
+2
-0
plugin/src/main/java/io/lumine/cosmetics/commands/SprayRemoveCommand.java
...java/io/lumine/cosmetics/commands/SprayRemoveCommand.java
+50
-0
plugin/src/main/resources-filtered/plugin.yml
plugin/src/main/resources-filtered/plugin.yml
+3
-0
pom.xml
pom.xml
+1
-1
No files found.
api/.flattened-pom.xml
View file @
10ab63c1
...
...
@@ -4,7 +4,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
io.lumine
</groupId>
<artifactId>
MCCosmetics-API
</artifactId>
<version>
0.
6
.0-SNAPSHOT
</version>
<version>
0.
7
.0-SNAPSHOT
</version>
<dependencies>
<dependency>
<groupId>
io.lumine
</groupId>
...
...
This diff is collapsed.
Click to expand it.
api/pom.xml
View file @
10ab63c1
...
...
@@ -12,6 +12,7 @@
<build>
<sourceDirectory>
src/main/java
</sourceDirectory>
<plugins>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
...
...
@@ -21,7 +22,7 @@
<outputDirectory>${ticxo.build.location}</outputDirectory>
</configuration>
</plugin>
-->
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-compiler-plugin
</artifactId>
...
...
This diff is collapsed.
Click to expand it.
plugin/src/main/java/io/lumine/cosmetics/MCCosmeticsPlugin.java
View file @
10ab63c1
...
...
@@ -4,6 +4,7 @@ import com.ticxo.playeranimator.PlayerAnimatorImpl;
import
io.lumine.cosmetics.commands.BaseCommand
;
import
io.lumine.cosmetics.commands.EmotesCommand
;
import
io.lumine.cosmetics.commands.SprayCommand
;
import
io.lumine.cosmetics.commands.SprayRemoveCommand
;
import
io.lumine.cosmetics.commands.SpraysCommand
;
import
io.lumine.cosmetics.commands.admin.AdminCommand
;
import
io.lumine.cosmetics.compat.CompatibilityManager
;
...
...
@@ -139,6 +140,7 @@ public class MCCosmeticsPlugin extends LuminePlugin {
this
.
registerCommand
(
"mccosmetics"
,
adminCommand
);
this
.
registerCommand
(
"sprays"
,
new
SpraysCommand
(
this
));
this
.
registerCommand
(
"spray"
,
new
SprayCommand
(
this
));
this
.
registerCommand
(
"sprayremove"
,
new
SprayRemoveCommand
(
this
));
this
.
registerCommand
(
"emote"
,
new
EmotesCommand
(
this
));
if
(
configuration
.
isAllowingMetrics
())
{
...
...
This diff is collapsed.
Click to expand it.
plugin/src/main/java/io/lumine/cosmetics/commands/SprayRemoveCommand.java
0 → 100644
View file @
10ab63c1
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.api.MCCosmetics
;
import
io.lumine.cosmetics.commands.CommandHelper
;
import
io.lumine.cosmetics.constants.Permissions
;
import
io.lumine.cosmetics.managers.sprays.Spray
;
import
io.lumine.utils.commands.Command
;
public
class
SprayRemoveCommand
extends
Command
<
MCCosmeticsPlugin
>
{
public
SprayRemoveCommand
(
MCCosmeticsPlugin
plugin
)
{
super
(
plugin
);
}
@Override
public
boolean
onCommand
(
CommandSender
sender
,
String
[]
args
)
{
var
player
=
(
Player
)
sender
;
getPlugin
().
getSprayManager
().
removeSpray
(
player
);
return
true
;
}
@Override
public
List
<
String
>
onTabComplete
(
CommandSender
sender
,
String
[]
args
)
{
return
Collections
.
emptyList
();
}
@Override
public
String
getPermissionNode
()
{
return
Permissions
.
COMMAND_SPRAY
;
}
@Override
public
boolean
isConsoleFriendly
()
{
return
false
;
}
@Override
public
String
getName
()
{
return
""
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
plugin/src/main/resources-filtered/plugin.yml
View file @
10ab63c1
...
...
@@ -26,6 +26,9 @@ commands:
spray
:
description
:
Use your equipped spray
aliases
:
[
s
]
sprayremove
:
description
:
Remove your used sprays
aliases
:
[
removespray
]
emote
:
description
:
Use your equipped emote
aliases
:
[
emotes
,
e
]
...
...
This diff is collapsed.
Click to expand it.
pom.xml
View file @
10ab63c1
...
...
@@ -13,7 +13,7 @@
</organization>
<properties>
<mccosmetics.version>
0.
6
.0
</mccosmetics.version>
<mccosmetics.version>
0.
7
.0
-SNAPSHOT
</mccosmetics.version>
<paperapi.version>
1.19-R0.1-SNAPSHOT
</paperapi.version>
<lumineutils.version>
1.18-SNAPSHOT
</lumineutils.version>
<lombok.version>
1.18.22
</lombok.version>
...
...
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