提供: Minecraft Modding Wiki
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
22行目: | 22行目: | ||
// 実行インスタンスがPlayerの場合 | // 実行インスタンスがPlayerの場合 | ||
player = (Player)sender; | player = (Player)sender; | ||
− | if (((player.hasPermission("simpleWeather.set")) || | + | if (((player.hasPermission("simpleWeather.set")) || (player.isOp()) || (player.hasPermission("simpleWeather.*")) || (player.hasPermission("*"))) && |
− | + | (cmd.getName().equalsIgnoreCase("weather")) && (args.length == 2)) { | |
− | |||
− | |||
− | |||
− | |||
// プレイヤーがパーミッションを持つかOPである上に、コマンドがweather、引数が指定されていたときに実行 | // プレイヤーがパーミッションを持つかOPである上に、コマンドがweather、引数が指定されていたときに実行 | ||
if (args[1].equalsIgnoreCase("thunder")) { | if (args[1].equalsIgnoreCase("thunder")) { | ||
68行目: | 64行目: | ||
} | } | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |