Skip to content

Instantly share code, notes, and snippets.

@highemerly
Last active February 8, 2021 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save highemerly/92e88da160a8e6cdceb07dddc8dfd5cc to your computer and use it in GitHub Desktop.
Save highemerly/92e88da160a8e6cdceb07dddc8dfd5cc to your computer and use it in GitHub Desktop.
マイクラ設定メモ

基本設定

特徴

  • Discord bot での起動・終了
  • Java版・統合版クロスプレイ
  • 接続先などのその他詳細は,Discordで !info と打つと表示されます。

初めての方へ

荒し対策のために初期ログイン時はブロックを壊せない設定になっています。参加したい方は初期ログイン後にDiscordで「権限くれ!」と叫んでください。管理者が対応します。(初期ログイン後でないと権限は追加できません)

ルール

ありません。勝手にルールを作らないのがルールです。

プラグイン

  • Dynmap(Web地図)
  • BetterSleeping(全員寝なくても睡眠扱いする)
  • DiscordSRV(Discord連携)
  • Geyser-Spigot(統合版連携)
  • floodgate-bukit(統合版連携)
  • Modifyworld(権限プラグイン)
  • LuckPerms(権限プラグイン)

なお,!serverコマンドなどのサーバ制御コマンドは,プラグインではなく全て自作スクリプトで動いています。

環境

  • EC2東京リージョン
    • t3aインスタンス で動作
    • 起動時にサーバのメモリ量を見て自動でJavaVMのサイズを指定するようになっているので,インスタンスタイプを変えると勝手に良い感じに設定される
  • 費用は,はんドンクラブとは完全別会計

権限設定

ユーザをどれか一つのグループに所属させることで権限を設定している。

defaultグループ

初期ユーザが所属するグループ。

Permissions 設定 内容
modifyworld.blocks.interact.* true ボタン操作許可
modifyworld.item.use.* true 一般アイテムの使用許可
modifyworld.items.* true 一般アイテムの所持などの許可
modifyworld.vehicle.* true 乗り物の許可
modifyworld.bucket.(empty|fill).(water|air) true 水バケツの使用許可
modifyworld.chat true チャットの利用許可
modifyworld.sneak true sneak許可
modifyworld.sprint true ダッシュ許可
modifyworld.* false その他のアクションの不許可
minecraft.command.* false 全てのマイクラコマンドの不許可

user

一般ユーザが所属するグループ。管理者により所属グループを変更してもらう必要がある。

Permissions 設定 内容
modifyworld.* true 全ての操作の許可
minecraft.command.list true listコマンドの許可
minecraft.command.locate true locateコマンドの許可
minecraft.command.me true meコマンドの許可
minecraft.command.msg true msgコマンドの許可
dynmap.marker.* true 地図上にマーカーを設定するコマンドの許可

admin

管理者が所属するグループ。オペレーションミスを防ぐためユーザを限定する。adminグループはuserグループを継承したグループであるため,userグループに許可されている設定は全てそのまま許可される。

Permissions 設定 内容
group.user true userグループの権限の継承
luckperms.user.parent.* true ユーザ所属グループの変更コマンドの許可
luckperms.user.info.* true ユーザ所属グループの確認コマンドの許可
minecraft.command.debug true debugコマンドの許可
minecraft.command.ban true banコマンドの許可
minecraft.command.kick true kickコマンドの許可
minecraft.command.difficulty true difficultyコマンドの許可
minecraft.command.gamemode true gamemodeコマンドの許可
minecraft.command.weather true weatherコマンドの許可
minecraft.command.time true timeコマンドの許可
minecraft.command.seed true seedコマンドの許可
minecraft.command.team true teamコマンドの許可
minecraft.command.tp true tpコマンドの許可
minecraft.command.teleport true teleportコマンドの許可
minecraft.command.spawnpoint true spawnpointコマンドの許可

管理者コマンドを使って,新規ユーザを承認するコマンドは以下のとおり。

/lp group <ユーザ名> parent add user
/lp group <ユーザ名> parent remove default

マップ

マップはdynmapを使って描画している。描画の更新条件は「ブロックの状態が変わったとき」(例外:木の葉っぱの成長)のはずだが負荷低減のためにこまめに見直しをしているので詳細を知りたい人は問い合わせください。

marker

マーカーを設定するとwebブラウザで表示されて便利。使い方は以下がわかりやすい。

https://wikiwiki.jp/immminecraft/dynmap/dmarker

路線図

最近全く更新してない

路線図

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment