Skip to content

Commit

Permalink
Release v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ArikSquad committed Jun 21, 2022
1 parent b6313d8 commit ef3ac7a
Show file tree
Hide file tree
Showing 24 changed files with 534 additions and 449 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,3 @@ buildNumber.properties

# Common working directory
run/

# Project specific
lib/
22 changes: 0 additions & 22 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,7 @@
<pattern>com.jeff_media.updatechecker</pattern>
<shadedPattern>eu.mikart.animvanish.updatechecker</shadedPattern>
</relocation>

<relocation>
<pattern>de.slikey</pattern>
<shadedPattern>eu.mikart.animvanish.slikey</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>com.elmakers.mine.bukkit:EffectLib</artifact>
<excludes>
<exclude>plugin.yml</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
</excludes>
</filter>
</filters>
</configuration>
<executions>
<execution>
Expand Down Expand Up @@ -171,13 +157,5 @@
<artifactId>annotations</artifactId>
<version>23.0.0</version>
</dependency>

<!-- EffectLib -->
<dependency>
<groupId>com.elmakers.mine.bukkit</groupId>
<artifactId>EffectLib</artifactId>
<version>9.4</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
121 changes: 4 additions & 117 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Main page at [here.](https://www.spigotmc.org/resources/animvanish-1-18-animated-vanishing.102183/)
![Title](docs/title.png)
# More information at our [main page.](https://www.spigotmc.org/resources/animvanish-1-18-animated-vanishing.102183/)
___
Our plugin makes your vanishing look great with a large library of pre-made effects on your vanish.

Expand All @@ -12,119 +11,7 @@ Our plugin makes your vanishing look great with a large library of pre-made effe
- Blindness effect
- Sound effect
- Turn effect
- Blood effect

![Title](docs/config.png)
### config.yml:
```yaml
# Configuration file of AnimVanish #
# -------------------------------- #


# ---- EFFECTS ---- #

effects:
herobrine:
# Will the time set to night with the effect? Default: True
night: true
# How long the night will last? Default: 3
time: 3

particle:
# What particle will be used when using particle as the effect. Default: DRAGON_BREATH
# You can find types here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html#enum-constant-summary
type: DRAGON_BREATH
# How many particles will be spawned. Default: 50
amount: 50

npc:
# How many seconds the NPC will last. Default: 3
despawn_after: 3

zombie:
# How many seconds the zombie will last. Default: 3
despawn_after: 3

blindness:
# How many seconds the blindness effect will last. Default: 3
effect_last: 3

sound:
# What sound the player will hear. Default: BLOCK_AMETHYST_BLOCK_HIT
# You can find types here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html#enum-constant-summary
type: BLOCK_AMETHYST_BLOCK_HIT
```
### messages.yml:
```yaml
# Configuration file of AnimVanish #
# -------------------------------- #
# Remember to add a space after prefix


# ---- GENERAL ---- #
prefix: '[<color:#AFEEEE>AnimVanish</color>] '

# ---- COMMANDS ---- #
invalid_args: '<red>Invalid arguments.</red>'
not_player: '<red>You must be a player.</red>'
reload: '<color:#b0ff5c>Reloaded configs</color>'


invis:
only_to_vanish: '<red>This effect only applies when going into vanish.</red>'

herobrine:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.herobrine)</green>"

particle:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.particle)</green>"
invalid_config: '<red>Invalid particle configuration. Ask an administrator to check config file.</red>'
invalid_particle: "<red>That particle doesn't exist or it isn't supported.</red>"

tnt:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.tnt)</green>"

npc:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.npc)</green>"

zombie:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.zombie)</green>"

blindness:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.blindness)</green>"
message: '<yellow>You saw something and you now feel dizzy</yellow>'
author: '<green>You blinded all the players around you.</green>'

sound:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.sound)</green>"
invalid_config: '<red>Invalid sound configuration. Ask an administrator to check config file.</red>'
invalid_sound: "<red>That sound doesn't exist or it isn't supported.</red>"

turn:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.turn)</green>"

firework:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.firework)</green>"

blood:
no_permission: "<red>You don't have permission to use this effect.</red> <green>(animvanish.invis.blood)</green>"


animvanish:
help:
no_permission: "<red>You don't have permission to use this command.</red> <green>(animvanish.help)</green>"
reload:
no_permission: "<red>You don't have permission to use this command.</red> <green>(animvanish.reload)</green>"


dependency:
no_citizens: '<red>You must have Citizens installed to use this effect.</red>'
no_vanish: '<red>You must have SuperVanish or PremiumVanish installed to use this command.</red>'
```
![Title](docs/permissions.png)
```txt
animvanish.* - All permissions in one
animvanish.invis - This permission allows vanishing with effects
animvanish.invis.[effect] - This permissions allows vanishing with a specific effect
animvanish.reload - This permission can reload the plugin
animvanish.help - This permissions can see help for the plugin
```
### Known issues
- None
14 changes: 10 additions & 4 deletions src/main/java/eu/mikart/animvanish/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
import com.jeff_media.updatechecker.UpdateCheckSource;
import com.jeff_media.updatechecker.UpdateChecker;
import com.tchristofferson.configupdater.ConfigUpdater;
import de.slikey.effectlib.EffectManager;
import eu.mikart.animvanish.commands.AnimVanishCommand;
import eu.mikart.animvanish.commands.InvisCommand;
import eu.mikart.animvanish.config.MessageManager;
import eu.mikart.animvanish.effects.EffectManager;
import eu.mikart.animvanish.gui.InvisGUI;
import eu.mikart.animvanish.listeners.NoDamage;
import eu.mikart.animvanish.utils.Settings;
import eu.mikart.animvanish.config.Settings;
import org.bstats.bukkit.Metrics;
import org.bukkit.plugin.java.JavaPlugin;

Expand All @@ -20,14 +21,14 @@ public final class Main extends JavaPlugin {

public static Main instance;
public MessageManager messages;
public EffectManager effectManager;
private EffectManager effectManager;


@Override
public void onEnable() {
instance = this;
this.messages = new MessageManager(this);
this.effectManager = new EffectManager(this);
this.effectManager = new EffectManager();

// bStats
new Metrics(this, Settings.bStats);
Expand Down Expand Up @@ -56,6 +57,7 @@ public void onEnable() {

// Register listeners
getServer().getPluginManager().registerEvents(new NoDamage(), this);
getServer().getPluginManager().registerEvents(new InvisGUI(), this);

// Check for updates
new UpdateChecker(this, UpdateCheckSource.SPIGET, Settings.PLUGIN_STR)
Expand All @@ -71,4 +73,8 @@ public void onDisable() {
instance = null;
}

public eu.mikart.animvanish.effects.EffectManager getEffectManager() {
return effectManager;
}

}
Loading

0 comments on commit ef3ac7a

Please sign in to comment.