Examples of awardAchievement()


Examples of net.glowstone.entity.GlowPlayer.awardAchievement()

            case ClientStatusMessage.REQUEST_STATS:
                player.sendStats();
                break;

            case ClientStatusMessage.OPEN_INVENTORY:
                player.awardAchievement(Achievement.OPEN_INVENTORY);
                break;

            default:
                GlowServer.logger.info(session + " sent unknown ClientStatus action: " + message.getAction());
        }
View Full Code Here

Examples of org.bukkit.entity.Player.awardAchievement()

                    continue;
                }
                PlayerAchievementAwardedEvent event = new PlayerAchievementAwardedEvent(player, achievement);
                Bukkit.getServer().getPluginManager().callEvent(event);
                if (!event.isCancelled()) {
                    player.awardAchievement(achievement);
                }
            }
            Command.broadcastCommandMessage(sender, String.format("Successfully given all achievements to %s", player.getName()));
            return true;
        }
View Full Code Here

Examples of org.bukkit.entity.Player.awardAchievement()

            Bukkit.getServer().getPluginManager().callEvent(event);
            if (event.isCancelled()) {
                sender.sendMessage(String.format("Unable to award %s the achievement %s", player.getName(), statisticString));
                return true;
            }
            player.awardAchievement(achievement);
               
            Command.broadcastCommandMessage(sender, String.format("Successfully given %s the stat %s", player.getName(), statisticString));
            return true;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.