mirror of
https://github.com/TotalFreedomMC/PlayerParticles.git
synced 2025-07-11 08:14:13 +00:00
Add style 'rings', code cleanup
This commit is contained in:
parent
36803440c0
commit
200103a5c9
16 changed files with 196 additions and 80 deletions
|
@ -10,7 +10,6 @@ import org.bukkit.util.StringUtil;
|
|||
import com.esophose.playerparticles.manager.DataManager;
|
||||
import com.esophose.playerparticles.manager.LangManager;
|
||||
import com.esophose.playerparticles.manager.LangManager.Lang;
|
||||
import com.esophose.playerparticles.manager.ParticleManager;
|
||||
import com.esophose.playerparticles.manager.PermissionManager;
|
||||
import com.esophose.playerparticles.particles.PPlayer;
|
||||
import com.esophose.playerparticles.particles.ParticleEffect;
|
||||
|
@ -31,7 +30,7 @@ public class AddCommandModule implements CommandModule {
|
|||
return;
|
||||
}
|
||||
|
||||
ParticleEffect effect = ParticleManager.effectFromString(args[0]);
|
||||
ParticleEffect effect = ParticleEffect.fromName(args[0]);
|
||||
if (effect == null) {
|
||||
LangManager.sendMessage(pplayer, Lang.EFFECT_INVALID, args[0]);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue